Skip to main content
Version: 56.0.0

Append upload content

PATCH 

/api/v1/uploads/:id

Appends the body to the upload with the tus 1.0.0 core protocol. Upload-Offset must equal the number of bytes the upload has received, which HEAD reports. A single request at offset 0 with the whole file is the non-resumable form. A body is limited to 24 MiB by default, the default declared-size limit, and an environment can configure a different limit; a client of a larger limit chooses a smaller chunk size. The request that appends the last declared byte makes the upload ready, after which it accepts no further bytes; content cannot be replaced. Concurrent requests to one upload are applied one at a time, and a request whose offset a preceding one has made stale is rejected with 409. A rejected request appends nothing. When the received bytes can no longer be appended to, because an earlier request failed after storing its bytes, the upload is reset: its received bytes are discarded, the request is rejected with 409, and HEAD reports offset 0, from which the client sends the content again.

Request​

Responses​

The body was appended. The response has no body.

Response Headers
    Cache-Control

    no-store, so no cache answers with an outdated offset.

    Repr-Digest

    Only for a ready upload: the RFC 9530 sha-256 digest of the stored content.

    Tus-Resumable

    The tus protocol version. Every response of an upload operation carries it, Problem responses included, except a 406.

    Upload-Expires

    The upload's expiration time as an HTTP-date.

    Upload-Length

    The upload's declared size in bytes.

    Upload-Metadata

    The filename key with the upload's filename in base64.

    Upload-Offset

    The number of bytes the upload has received and stored, at which the next PATCH continues.