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