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?
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?
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.
2 People are following this question.