Range Upload

This interface is used for range upload, supports breakpoint resuming, and does not support encrypted file.

HTTP Interface:

PUT /resume/<file_name>

Request Header:

key
description

Territory

territory name

Content-Range

content range

Identity signature required: yes

Request Body:

The file is provided in the form.

key
value

file

file[binary]

Request example:

curl -X PUT URL/resume/<file_name> -F 'file=@test.log' -H "Territory: territory_name" -H "Account: cX..." -H "Message: ..." -H "Signature: 0x..." -H "Content-Range: bytes 0-201326591/445531360"
curl -X PUT URL/resume/<file_name> -F 'file=@test.log' -H "Territory: territory_name" -H "Account: cX..." -H "Message: ..." -H "Signature: 0x..." -H "Content-Range: bytes 201326592-402653183/445531360"
curl -X PUT URL/resume/<file_name> -F 'file=@test.log' -H "Territory: territory_name" -H "Account: cX..." -H "Message: ..." -H "Signature: 0x..." -H "Content-Range: bytes 402653184-445531359/445531360"

Last updated