question

757838172 avatar image
757838172 asked

Error uploading data

I used Playfab's API "entity. FinalizeFileUploads"to get an upload address, which I used in Unitywebrequest to upload file data will cause an error :HTTP/1.1 403 Forbidden.

Is there any solution?

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

Firstly, to get upload address, we should use InitiateFileUploads not FinalizeFileUploads.

403 error is NotAuthorized Error. Maybe you didn’t assign the EntityToken. As you said you called this API in Unity. If it is a client you should log in before you call this API. If you log in successfully, EntityToken will be assigned automatically.

If you have logged in, what did you assign to the Entity.Id? If the Entity.Id is not corresponding to the EntityToken, it will lead to 403 Error too. You can Keep the EntityId corresponding to the EntityToken.

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.