Multipart Upload Chunked
Service Address
http://upload-az-cn.danghongyun.com/multipart/multipartUpload
Request Method
POST
Request Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| token | The access token | String | Required |
| uploadId | The id of the upload task | String | Required |
| chunkMD5 | The md5 of file chunk | String | Required |
| chunkIndex | The index of file chunk | int | Required |
| chunkSize | The size of file chunk | Long | Required |
| fileInputStream | The file input stream | InputStream | Required |
Response Example
{
"code":0,
"message":"success",
"result":"",
"success":true
}
Error Codes
| Code | Message |
|---|---|
| 0 | success |
| 10000 | exception |
| 10007 | Md5 not match |
| 10008 | This block is already being uploaded or has already been uploaded |
| 10010 | Exception in uploading chunks to OSS |