question

비비 avatar image
비비 asked

How to send a file to the URL obtained using "File - Initiate File Uploads"

I got the upload URL through "https://titleId.playfabapi.com/File/InitiateFileUploads".

You need to upload a file to a URL via HTTP-PUT.

What do you put in the Request Header and Request Body?

Shouldn’t you send the file by putting it here in the Request Body?

apis
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

·
Infer Wang avatar image
Infer Wang answered

You can follow these steps:

Call InitiateFileUploads to get the UploadUrl

Upload a file to the URL via HTTP-PUT(you can follow Publish your first user generated content - PlayFab | Microsoft Learn to set the necessary header)

Call FinalizeFileUploads

10 |1200

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

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.