Drive > Files > File/Directory > Upload > Session

Append chunk to session

Append more data to an upload session. <br/><br/><note> The maximum size per chunk request is 1GB. </note><br/><note> To upload a chunk, you must use the ‘upload_url’ returned from the session opening call : <a href="../start">upload/session/start</a>. </note>

post/3/drive/{drive_id}/upload/session/{session_token}/chunk

Path parameters

drive_idinteger required

Drive identifier

session_tokenstring required

Session token uuid

Query parameters

chunk_hashstring

The hash of the current chunk. If provided and the uploaded content does not match this hash, an error will be returned.<note>Supported hashing algorithm: md5, sha1, sha256, sha512, xxh3, xxh32, xxh64, xxh128</note>

Example:xxh3:00ec7bec63e548df
chunk_numberinteger required

The index of the current chunk, <note>The index start at 1</note>

chunk_sizeinteger required

The size of the current chunk, <note>the unit of size is defined in Bytes</note><note>Please note that the chunk size should be between 1000000 and 1000000000 bytes, except for the last one, which can be smaller as it is the final chunk</note>

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "status": "error"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.