API 參考
TUS 上傳區塊
透過 TUS 1.0 協定上傳大型檔案的一個區塊。
PATCH
upload_id*stringUpload session ID
Tus-Resumable*"1.0.0"TUS protocol version
Value in
"1.0.0"Upload-Offset*integerByte offset of this chunk, which must match the current upload offset
Raw bytes of the chunk
body*fileapplication/offset+octet-streamFormat
binaryChunk accepted. The new offset is returned in the Upload-Offset header.
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