Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CreateMultipartUpload

Esta operação inicia um upload com várias partes e retorna um ID de upload. Esse ID de upload é usado para associar todas as partes no upload multipart específico. Você especifica esse ID de upload em cada uma das solicitações de peças de upload subsequentes. Você também inclui esse ID de upload na solicitação final para concluir ou abortar a solicitação de upload com várias partes.

Request Syntax

Code Block
themeMidnight
POST /{Key+}?uploads HTTP/1.1
Host: bucket-name.bigfile.brascloud.com.br:443
x-amz-acl: ACL
Cache-Control: CacheControl
Content-Disposition: ContentDisposition
Content-Encoding: ContentEncoding
Content-Language: ContentLanguage
Content-Type: ContentType
Expires: Expires
x-amz-grant-full-control: GrantFullControl
x-amz-grant-read: GrantRead
x-amz-grant-read-acp: GrantReadACP
x-amz-grant-write-acp: GrantWriteACP
x-amz-server-side-encryption: ServerSideEncryption
x-amz-storage-class: StorageClass
x-amz-website-redirect-location: WebsiteRedirectLocation
x-amz-server-side-encryption-customer-algorithm: SSECustomerAlgorithm
x-amz-server-side-encryption-customer-key: SSECustomerKey
x-amz-server-side-encryption-customer-key-MD5: SSECustomerKeyMD5
x-amz-server-side-encryption-aws-kms-key-id: SSEKMSKeyId
x-amz-server-side-encryption-context: SSEKMSEncryptionContext
x-amz-request-payer: RequestPayer
x-amz-tagging: Tagging
x-amz-object-lock-mode: ObjectLockMode
x-amz-object-lock-retain-until-date: ObjectLockRetainUntilDate
x-amz-object-lock-legal-hold: ObjectLockLegalHoldStatus

Response Syntax

Code Block
themeMidnight
HTTP/1.1 200
x-amz-abort-date: AbortDate
x-amz-abort-rule-id: AbortRuleId
x-amz-server-side-encryption: ServerSideEncryption
x-amz-server-side-encryption-customer-algorithm: SSECustomerAlgorithm
x-amz-server-side-encryption-customer-key-MD5: SSECustomerKeyMD5
x-amz-server-side-encryption-aws-kms-key-id: SSEKMSKeyId
x-amz-server-side-encryption-context: SSEKMSEncryptionContext
x-amz-request-charged: RequestCharged
<?xml version="1.0" encoding="UTF-8"?>
<CreateMultipartUploadOutput>
   <Bucket>string</Bucket>
   <Key>string</Key>
   <UploadId>string</UploadId>
</CreateMultipartUploadOutput>

Exemplos

Esta operação inicia um upload de várias partes para o example-object objeto.

Code Block
themeMidnight
titleRequest
            POST /example-object?uploads HTTP/1.1
            Host: bucket.bigfile.brascloud.com.br:443
            Date: Mon, 1 Nov 2010 20:34:56 GMT
            Authorization: authorization string

Code Block
themeMidnight
titleResponse
            HTTP/1.1 200 OK
            x-amz-id-2: Uuag1LuByRx9e6j5Onimru9pO4ZVKnJ2Qz7/C1NPcfTWAtRPfTaOFg==
            x-amz-request-id: 656c76696e6727732072657175657374
            Date:  Mon, 1 Nov 2010 20:34:56 GMT
            Content-Length: 197
            Connection: keep-alive
            Server: bigfile

            <?xml version="1.0" encoding="UTF-8"?>
            <InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
              <Bucket>example-bucket</Bucket>
              <Key>example-object</Key>
              <UploadId>VXBsb2FkIElEIGZvciA2aWWpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZA</UploadId>
            </InitiateMultipartUploadResult>


Canal direto de comunicação com nossos arquitetos.Image AddedAinda tem dúvidas?

Você pode abrir um chamado conosco acessando nosso portal de suporte, estamos a disposição.