S.EE Docs
API 參考

TUS 上傳區塊

透過 TUS 1.0 協定上傳大型檔案的一個區塊。

PATCH
/api/v1/file/large-file-tus/{upload_id}

Path Parameters

upload_id*string

Upload session ID

Header Parameters

Authorization*string

API key

Tus-Resumable*"1.0.0"

TUS protocol version

Value in"1.0.0"
Upload-Offset*integer

Byte offset of this chunk, which must match the current upload offset

Request Body

Raw bytes of the chunk

body*fileapplication/offset+octet-stream
Formatbinary

Response Body

Chunk accepted. The new offset is returned in the Upload-Offset header.

Example Request
curl -X PATCH 'https://s.ee/api/v1/file/large-file-tus/string' \  -H 'Authorization: string' \  -H 'Tus-Resumable: 1.0.0' \  -H 'Upload-Offset: 0' \  -H 'Content-Type: application/offset+octet-stream' \  -d 'string'
Example Response204
Empty