games.avatars.prepareCustomAvatarUpload
Description
Prepares a custom avatar image upload.
Complete upload with rivet.api.cloud#CompleteCustomAvatarUpload.
Code Examples
Request Parameters
game_id
required path parameterRequest Body
pathstringThe path/filename of the custom avatar.
mimestringThe MIME type of the custom avatar.
content_lengthnumberUnsigned 64 bit integer.
Response Body
upload_idstringpresigned_requestobjectA presigned request used to upload files. Upload your file to the given URL via a PUT request.
presigned_request.pathstringThe name of the file to upload. This is the same as the one given in the upload prepare file.
presigned_request.urlstringThe URL of the presigned request for which to upload your file to.
presigned_request.byte_offsetnumberThe byte offset for this multipart chunk. Always 0 if not a multipart upload.
presigned_request.content_lengthnumberExpected size of this upload.