1. Complete Multipart Upload

1.1. 描述

组装已上传的块生成新对象,从而完成多块上传。

1.2. 请求地址

POST /{bucket}/{object}

1.3. 请求头

该请求头信息请参考【公共参数】部分。

1.4. 请求参数

Name Type Description Required
uploadId String 已初始化的多块上传ID

1.5. 请求体

Name Type Description Required
partETags Dict 已上传的分块内容
partNumber String 块编号
eTag String 块etag

1.6. 响应头

该响应头信息请参考【公共参数】部分。

1.7. 响应体

Name Type Description
bucketName String Bucket名称
key String Object 名称
etag String 新对象的eTag

1.8. 请求示例

POST /lj-test-002/QQ_V6.5.0.dmg?uploadId=2%7EbhuAWBJusnd_Sl8H4iaII8wYTypFMIh
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"}]}

1.8.1. 返回结果

响应头

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"
}

1.9. 错误码

该接口没有特殊错误码,错误码可以参考公共错误码

results matching ""

    No results matching ""