When uploading a large media to Cloudinary that's larger than 60mb, you will need to upload in chunk with the following requirements:
X-Unique-Upload-Id
request header and make sure it's identical (and unique) for all parts.Content-Range
request header which is applicable to the location of the chunk in the overall file with the following format:bytes #start-#end/#total
Example:bytes 0-5999999/22744222
.
Note: If the total size is unknown, set it to-1
, except for the last one.- Each chunk must be larger than 5MB except for the last one.
Below is the implementation of chunk upload with Vanilla Javascript:
Comments
0 comments
Please sign in to leave a comment.