question

Green Papaya avatar image
Green Papaya asked

Upload multiplayer asset

We can delete an asset with:

https://docs.microsoft.com/en-us/rest/api/playfab/multiplayer/multiplayerserver/deleteasset?view=playfab-rest

Is there a similar way we can upload a multiplayer.exe?

multiplayer
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

You can use Entity API GetAssetUploadUrl to get the Upload URL, then use the PUT request to upload the build’s zip file. For such PUT requests, you need to add the following request header for it.

{“x-ms-blob-type”: “BlockBlob”}

Essentially, due to PlayFab uses Azure blob storage to store the assets, you can also consider using Azure SDK’s put blob method to submit it. For more details about how to upload the assets, you can refer to this thread -- How do I upload my server.zip using C#?

1 comment
10 |1200

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

Green Papaya avatar image Green Papaya commented ·

Thank you. Was successful with the PUT request and headers.

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.