Chunked Uploads
It is possible to do a chunked upload to our servers. To do this, simply post the chunks to the same URL as described in Send a job uploading a file..
To be able to do the upload in chunks, you have to send the following headers with every chunk:
x-oc-upload-uuid
- Put your unique, randomly generated identifier here. This can be any string, even a numeric index, but it has to be unique across the job.
Content-Range
- The content range of the current chunk in the following format:
start-end/total
- Example:
Content-Range:bytes 0-1048575/5230812
for the first 1MB chunk of an approximately 5MB file
- Example:
- The content range of the current chunk in the following format:
start-end/total