0005-00000419

Updated at:

Problem description

The part size in the UploadPart request is different from the part size specified in the InitiateMultipartUpload request.

Causes

The part size specified in the UploadPart request is not the expected value.

The size of each part except for the last part in an UploadPart request must be the same as the value of the x-oss-meta-client-side-encryption-part-size header specified in the InitiateMultipartUpload request.

Examples

For example, you initiate an InitiateMultipartUpload request:

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****************
x-oss-meta-client-side-encryption-data-size: 2048
x-oss-meta-client-side-encryption-part-size: 1024

Then, you initiate an UploadPart request:

PUT /multipart.data?partNumber=1&uploadId=0004B9895DBBB6EC9****  HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Content-Length: 6291456
Date: Wed, 22 Feb 2012 08:32:21 GMT
Authorization: OSS qn6q**************:77Dv****************
x-oss-meta-client-side-encryption-part-size: 1024
[6291456 bytes data]

The error is returned for the UploadPart request because the part size is different from the expected value.

Solutions

Make sure that the size of parts except for the last part is the same as the part size specified in the InitiateMultipartUpload request.

References