Upload large files
To upload large files, you must split the content into chunks no larger than 1000000 bytes (or approximately 1 MB). You do this using the chunks parameter.
To upload large files:
- Request an upload URL.
- Add the chunks parameter to the upload URL indicating the total number of chunks to be uploaded.
- Add the chunks parameter to the upload URL indicating which chunk is being uploaded in the current request.
- Repeat Step 3 to upload subsequent chunks.
- Finalize the chunks upload.
- Upload or create a new asset or update an existing one with a master or alternative file.
Example
The following example illustrates Steps 2 to 4 when uploading large files in three chunks.
api/v2.0/upload/process?key=local-8e9a60a347b54293a377f6c818a8776c&name=tmp700.jpg&expires=2020-11-20T21:06:51.6292002+00:00&signature=pQDBjdFxseE&chunks=3&chunk=0
api/v2.0/upload/process?key=local-8e9a60a347b54293a377f6c818a8776c&name=tmp700.jpg&expires=2020-11-20T21:06:51.6292002+00:00&signature=pQDBjdFxseE&chunks=3&chunk=1
pi/v2.0/upload/process?key=local-8e9a60a347b54293a377f6c818a8776c&name=tmp700.jpg&expires=2020-11-20T21:06:51.6292002+00:00&signature=pQDBjdFxseE&chunks=3&chunk=2
api/v2.0/upload/process?key=local-59b7c645f5ce407f97405b7a5b00d15b&name=tmp700.jpg&expires=2020-11-20T21:06:51.6292002+00:00&signature=pQDBjdFxseE&chunks=3
Can we improve this article ? Provide feedback