initiate-multipart-upload
Initiate Multipart Upload
1. 描述
初始化分片上传。
2. 请求地址
POST /{bucket}/{object}?uploads
3. 请求头
该请求头信息请参考【公共参数】部分。
Name | Type | Description | Required |
---|---|---|---|
x-amz-acl | String | 定义Bucket访问权限,有效值:inherit,private和public-read,默认值:private | 否 |
4. 请求参数
无
5. 响应头
该响应头信息请参考【公共参数】部分。
6. 响应体
Name | Type | Description |
---|---|---|
contentMd5 | String | Md5值 |
etag | String | etag |
metadata | Dict | 元数据信息 |
7. 请求示例
POST /bucket123/QQ_V6.5.0.dmg?uploads HTTP/1.1
Host: cn-east-1.cloud-oss.com
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
8. 返回示例
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" : "bucket123",
"key" : "QQ_V6.5.0.dmg",
"uploadId" : "2~p-_2d3KSZbZVXbDr38Wrcnz_2EDH8uc",
"requesterCharged" : false
}
9. 错误码
该接口没有特殊错误码,错误码可以参考公共错误码