question

Ramon Esteve Cuevas avatar image
Ramon Esteve Cuevas asked

Option to upload a whole folder recursive in Game Manager

Hello,

Is there an option to upload a whole folder including sub directories to the PlayFab File Management tab? We have Unity Asset Bundles being uploaded to the server and these have sub-folders. However we cannot upload them all at once because they are in sub-directories. Is there a solution for this?

Kind regards,

Ramon

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

We would suggest you pack the data files and upload them as a zip file. The packed file is also convenient for players to download. It can improve the transmission’s efficiency. More information about packing and extracting zip files in Unity, you can refer to the answers in the Unity forum.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ramon Esteve Cuevas avatar image Ramon Esteve Cuevas commented ·

Hello Sarah,

The problem with zip files it that Unity won't cache the files correctly. This means that whenever we have a small update in one of the bundles the player doesn't need to download all the asset bundles but only the one required. If we pack them inside a zip file the player will always download the full zip instead of a small update in one of the bundles. So unforntunately we cannot use a zip file to upload them.

Kind regards,

Ramon

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang Ramon Esteve Cuevas commented ·

Thanks for the clarification. Currently, PlayFab CDN doesn't support uploading the folders. You need to use the [New folder] button to create the folder in the [File Management] manually. If the feature that uploading the file folders and its sub-folders is necessary for you, you can try to add a feature request of it.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.