S3 Complete Multipart Upload
- Print
- DarkLight
S3 Complete Multipart Upload
- Print
- DarkLight
Article Summary
Share feedback
Thanks for sharing your feedback!
POSThttps://s3.<your-region>.backblazeb2.com/<your-bucket-name>/<your-key>?uploadId=
Completes a multipart upload by assembling previously uploaded parts.
AUTHORIZATION AWS Signature
This request is using AWS Signature from collection Backblaze B2 Cloud Storage S3 Compatible API.
PARAMS
uploadId | An Upload ID obtained from S3 Create Multipart Upload |
PATH VARIABLES
bucket | Required. The name of the bucket |
key | Required. Key of the object to be written. |
Body (raw XML)
<CompleteMultipartUpload xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Part>
<ETag>3f83ebfa030f57196f30cd07c03fb632</ETag>
<PartNumber>1</PartNumber>
</Part>
<Part>
<ETag>196f30cd07c03fb6323f83ebfa030f57</ETag>
<PartNumber>2</PartNumber>
</Part>
...
</CompleteMultipartUpload>
Example Request
curl --location 'https://s3.<your-region>.backblazeb2.com/my-bucket-name-metadaddy/object-1?uploadId=4_z6145af89f355ac2f74ed0c1b_f2006887251b080dd_d20220128_m232720_c004_v0402000_t0046' \
--data '<CompleteMultipartUpload xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Part>
<ETag>85f30635602dc09bd85957a6e82a2c21</ETag>
<PartNumber>1</PartNumber>
</Part>
<Part>
<ETag>2dc09bd8595785f3063560a6e82a2c21</ETag>
<PartNumber>2</PartNumber>
</Part>
<Part>
<ETag>7a6e82a2c2185f30635602dc09bd8595</ETag>
<PartNumber>3</PartNumber>
</Part>
</CompleteMultipartUpload>'
Example Response
200 OK
Body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CompleteMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Bucket>my-bucket-name</Bucket>
<ETag>"3729bf569924c845dfe90bfe6281a9ff-1"</ETag>
<Key>object-1</Key>
<Location>/my-bucket-name/object-1</Location>
</CompleteMultipartUploadResult>
Headers (9)
Cache-Control | max-age=0, no-cache, no-store |
x-amz-request-id | 56aa38410aaebdd |
x-amz-version-id | 4_z6145af89f355ac2f74ed0c1b_f416a807037a7ee2a_d20220128_m231233_c004_v0402000_t0056 |
x-amz-id-2 | aMa41BGZMOZMztjUfY9JmpzRnZLRjZmIQ |
Content-Length | 353 |
Content-Type | application/xml |
Date | Fri, 28 Jan 2022 23:14:48 GMT |
Keep-Alive | timeout=5 |
Connection | keep-alive |
Was this article helpful?