Skip to content

Upload a photo chunk

PATCH
/cms/photo/{file_id}

Uploads a chunk for a photo and assembles the file when complete. Max recommended chunk size is 10MB. When the upload is complete, the response will contain the details of the uploaded photo in JSON format. If the upload is still in progress, the response will contain the current filename being uploaded.

file_id
required
string

File ID returned from the create endpoint

Upload-Offset
required
integer

Byte offset for the chunk being uploaded

Upload-Length
required
integer

Total byte length of the file being uploaded

Upload-Name
required
string

Original filename of the uploaded file

Chunk accepted or upload complete

One of:

Chunk accepted, upload in progress

object
filename
string

Invalid upload headers