POST files/{bucket}/{path}?size={size}&key={key}&requestTime={requestTime}&signature={signature}

Initializes an upload.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bucket

The bucket where the file will be stored.

string

Required

path

The path to the file.

string

Required

size

The size of the file.

integer

Required

key

The key that was used to sign this request.

string

Required

requestTime

The time the request was made.

integer

Required

signature

The signature that proves that you are who you say you are.

string

Required

Body Parameters

None.

Response Information

Resource Description

A response containing information about how to chunk the file during upload.

InitUploadResponse
NameDescriptionTypeAdditional information
ChunkSize

integer

None.

TotalChunks

integer

None.

Token

string

None.

Success

boolean

None.

Error

string

None.

Response Formats

application/xml, text/xml

Sample:
<InitUploadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Error>sample string 5</Error>
  <Success>true</Success>
  <ChunkSize>1</ChunkSize>
  <Token>sample string 3</Token>
  <TotalChunks>2</TotalChunks>
</InitUploadResponse>

application/json, text/json

Sample:
{
  "ChunkSize": 1,
  "TotalChunks": 2,
  "Token": "sample string 3",
  "Success": true,
  "Error": "sample string 5"
}