S3 Create Multipart Upload
    • Dark
      Light

    S3 Create Multipart Upload

    • Dark
      Light

    Article Summary

    POSThttps://s3.<your-region>.backblazeb2.com/<your-bucket-name>/<your-key>?uploads

    This action initiates a multipart upload and returns an uploadId. This uploadId is used to associate all of the parts in the specific multipart upload. 

    AUTHORIZATION AWS Signature

    This request is using AWS Signature from collection Backblaze B2 Cloud Storage S3 Compatible API.

    PARAMS

    upload

    Must be present for a multipart upload.

    PATH VARIABLES

    bucket

    Required. The name of the bucket

    key

    Required. Key of the object to be written.

    Body (raw XML)

    XML
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><br style="box-sizing: border-box;"><LegalHold xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><br style="box-sizing: border-box;">    <Status>ON</Status><br style="box-sizing: border-box;"></LegalHold>

    Example Request

    curl --location --request POST 'https://s3.<your-region>.backblazeb2.com/my-bucket-name/object-1?uploads=null'

    Example Response

    200 OK

    Body

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
        <Bucket>my-bucket-name</Bucket>
        <Key>object-1</Key>
        <UploadId>4_z6145af89f355ac2f74ed0c1b_f2025e1f1817e0030_d20220128_m233615_c004_v0402000_t0048</UploadId>
    </InitiateMultipartUploadResult>


    Headers (9)

    Cache-Control

    max-age=0, no-cache, no-store

    Content-Type

    application/xml

    Content-Length

    348

    x-amz-request-id

    90e17e227a223955

    x-amz-version-id

    4_z6145af89f355ac2f74ed0c1b_f2025e1f1817e0030_d20220128_m233615_c004_v0402000_t0048

    x-amz-id-2

    aMa41BGZMOZMztjUfY9JmpzRnZLRjZmIQ

    Date

    Fri, 28 Jan 2022 23:14:48 GMT

    Keep-Alive

    timeout=5

    Connection

    keep-alive







    Was this article helpful?

    What's Next