Problem description
The x-oss-storage-class
header cannot be specified in the UploadPart request.
Causes
The UploadPart request does not support the use of x-oss-storage-class
to specify a storage class.
Examples
For example, you initiate the following request:
PUT /ObjectName?partNumber=PartNumber&uploadId=UploadId HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Content-Length: Size
Authorization: SignatureValue
x-oss-storage-class: Archive
The error is returned for the sample request because the unsupported x-oss-storage-class
request header is included.
Solutions
Make sure that the x-oss-storage-class
header is not included in the request for the UploadPart operation. If you want to specify a storage class in a multipart upload task, specify the storage class in the InitiateMultipartUpload operation.
POST /multipart.data?uploads HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 22 Feb 2012 08:32:21 GMT
x-oss-storage-class: Archive
Authorization: OSS qn6q**************:77Dv****************