Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by dcooley · Oct 21, 2020 at 02:10 AM · Content

Can I upload a directory to Playfab content? Or does the admin api only support individual file uploads?

The directory I would like to host on playfab/content/filemanagement is only about 52 mb, but it is taking over about an hour to upload. This is due to the structure of the directory being many, small files. For each file I am currently making a request to 'getcontentuploadurl' and then actually making the upload request. All of these requests are starting to take a lot of time. Is there a way to make one getcontentupload url request and then upload a directory to it?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Oct 21, 2020 at 06:09 AM

Sorry, no, you cannot upload a whole directory to PlayFab CDN, it only takes a single file per request. You might consider zipping the directory and upload it as a single file.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dcooley · Oct 21, 2020 at 04:11 PM 0
Share

Thank you for your response! I thought that was the case, but I was hoping for magic. Unfortunately I need all the individual files to be available to different clients at different times, so I can not do a zip upload. Does the python SDK or C# SDK have directory upload capabilities? I am thinking about going one of those routes so I can async and multithread my uploads, assuming I continue needing to do individual file uploads.

avatar image Citrus Yan dcooley · Oct 22, 2020 at 07:03 AM 1
Share

No, they don't. Although you can use python/C#'s async abilities to help you speed up the process.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Is it possible to get the bundle content after a ValidateGooglePlayPurchase? 1 Answer

    How to Upload and Download a file with the C++ SDK? 2 Answers

    Eliminating false positive in Community Sift 1 Answer

    when will the Localization feature be integrated ?? 1 Answer

    How can a player download new level files via global CDN? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges