1. Initiate Multi-part Upload

1.1. 描述

初始化分块上传。

1.2. 请求地址

POST /{bucket}/{object}?uploads

1.3. 请求头

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

Name Type Description Required
x-amz-acl String 定义Bucket访问权限,有效值:inherit,private和public-read,默认值:private

1.4. 请求参数

1.5. 响应头

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

1.6. 响应体

Name Type Description
contentMd5 String Md5值
etag String etag
metadata Dict 元数据信息

1.7. 请求示例

POST /lj-test-002/QQ_V6.5.0.dmg?uploads
Nonce: 62c4d21b-730c-4cd2-88b2-00d01f99fbe0
Authorization: YCS1-HMAC-SHA1 Credential=d1a190cf-b05e-4ca4-9a24-3c3ac7938e08, SignedHeaders=date;nonce;version, Signature=c38ajrRqJFQ5Wf+6I9LLtLRv+a8=
x-amz-acl: public-read
Version: 2018-10-30
Date: Tue, 20 Nov 2018 06:39:58 GMT
Content-Type: application/json;charset=UTF-8

1.7.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
Content-Disposition: inline;filename=f.txt
Date: Tue, 20 Nov 2018 06:39:49 GMT
Connection: keep-alive
X-Content-Type-Options: nosniff
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
X-Application-Context: oss-api:swagger,dev:5921

响应体

{
  "bucketName" : "lj-test-002",
  "key" : "QQ_V6.5.0.dmg",
  "uploadId" : "2~p-_2d3KSZbZVXbDr38Wrcnz_2EDH8uc",
  "requesterCharged" : false
}

1.8. 错误码

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

results matching ""

    No results matching ""