Upload a chunk
PATCH/v1/storages/upload/resumable/:id
Appends a chunk to the specified upload session.
- The
Tus-Resumable: 1.0.0,Upload-Offset, andContent-Type: application/offset+octet-streamheaders are required; - The
Content-Lengthheader is required (chunked transfer encoding is not supported); - If
Upload-Defer-Length: 1was used at creation, declare the total file size viaUpload-Lengthin any PATCH request.
Request
Responses
- 204
- 403
- 409
- 411
- 412
- 413
- 423
- 503
Chunk uploaded successfully, no response body
Response Headers
Latest byte offset of uploaded data
TUS protocol version
Expiration time of an unfinished session (RFC 1123 format); not returned after the final chunk
Set to 1 when the last chunk is uploaded, indicating the object has been written to storage
Gateway request ID, useful for log searches
Missing Upload-Offset / Content-Type, or insufficient RLS permissions
Upload-Offset does not match the server (ERR_MISMATCHED_OFFSET)
PATCH is missing an explicit Content-Length or uses chunked encoding (STORAGE_CONTENT_LENGTH_REQUIRED)
Missing or unsupported Tus-Resumable header (ERR_UNSUPPORTED_VERSION)
Accumulated writes exceed the bucket limit or global quota (ERR_UPLOAD_SIZE_EXCEEDED)
The upload session or backend resource is locked; retry later
PG instance, storage backend, or environment is temporarily unavailable; retryable