complete-multipart-upload
Complete Multipart Upload
1. 描述
组装已上传的块生成新对象,从而完成分片上传。
2. 请求地址
POST /{bucket}/{object}
3. 请求头
该请求头信息请参考【公共参数】部分。
4. 请求参数
Name | Type | Description | Required |
---|---|---|---|
uploadId | String | 已初始化的分片上传ID | 是 |
5. 请求体
Name | Type | Description | Required |
---|---|---|---|
partETags | Dict | 已上传的分片内容 | 是 |
partNumber | String | 块编号 | 是 |
eTag | String | 块etag | 是 |
6. 响应头
该响应头信息请参考【公共参数】部分。
7. 响应体
Name | Type | Description |
---|---|---|
bucketName | String | Bucket名称 |
key String | Object | 名称 |
etag | String | 新对象的eTag |
8. 请求示例
POST /bucket123/QQ_V6.5.0.dmg?uploadId=2%7EbhuAWBJusnd_Sl8H4iaII8wYTypFMIh HTTP/1.1
Host: cn-east-1.cloud-oss.com
Nonce: c6133a52-9fc5-4890-9396-27b60f80e106
Authorization: YCS1-HMAC-SHA1 Credential=d1a190cf-b05e-4ca4-9a24-3c3ac7938e08, SignedHeaders=date;nonce;version, Signature=FQO5wKV8vdRoiHpgxXbyOtATkpU=
Version: 2018-10-30
Date: Tue, 20 Nov 2018 07:32:57 GMT
Content-Type: application/json;charset=UTF-8
{"partETags":[{"partNumber":1,"eTag":"f26f9370c96b0fdbbcf13190735bd602"},{"partNumber":2,"eTag":"b8f44bd6e24ff9b0f0c1b5e622f7771a"},{"partNumber":3,"eTag":"21540378e7520a41ee983f5889296c11"},{"partNumber":4,"eTag":"0a2c1e3393a59c60f6a1172115793ba4"},{"partNumber":5,"eTag":"309ac17ec45eeef0fdcb46279bbd47e1"}]}
9. 返回示例
Expires: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
X-XSS-Protection: 1; mode=block
Pragma: no-cache
X-Frame-Options: DENY
Date: Tue, 20 Nov 2018 07:32:57 GMT
Connection: keep-alive
X-Content-Type-Options: nosniff
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
{
"bucketName" : "lj-test-002",
"key" : "QQ_V6.5.0.dmg",
"etag" : "6c3efcc73f2b78b2cd1399ed200c93c5-5"
}
10. 错误码
该接口没有特殊错误码,错误码可以参考公共错误码