Information for doc: MUST respect server's request of upload type #124
Labels
Priority: Medium
Normal priority
Type: Enhancement
This will **improve** existing or **add** something new
Simple
If VRChat returns an upload type of
simple
, you MUST respect it and upload all the data in one big HTTP request to S3.In this scenario, you need to add the
content-md5
andcontent-type
headers to the request.Multipart
Otherwise, if you get
multipart
, you HAVE to upload only10485760
bytes at a time, and update your part number when doingstartFileUpload
.The
content-md5
andcontent-type
headers MUST be omitted otherwise your request will be rejected.It is expected that you calculate the number of required parts yourself.
An implementation of this goes as follows:
Queued
Not documented yet, not sure what
queued
does or means.If this isn't explicitly followed, the file is rejected on the server end later on, with the S3 URL returning
403 Forbidden
.The text was updated successfully, but these errors were encountered: