Versions Compared

Key

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

CompleteMultipartUpload

Conclui um upload com várias partes montando peças enviadas anteriormente.

Request Syntax


Code Block
themeMidnight
POST /Key+?UploadId=UploadId HTTP/1.1
Host: bucket-name.bigfile.brascloud.com.br:443
x-amz-request-payer: RequestPayer
<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload xmlns="http://bigfile.brascloud.com.br:443/doc/2006-03-01/">
   <Part>
      <ETag>string</ETag>
      <PartNumber>integer</PartNumber>
   </Part>
   ...
</CompleteMultipartUpload>

Response Syntax


Code Block
themeMidnight
HTTP/1.1 200
x-amz-expiration: Expiration
x-amz-server-side-encryption: ServerSideEncryption
x-amz-version-id: VersionId
x-amz-server-side-encryption-aws-kms-key-id: SSEKMSKeyId
x-amz-request-charged: RequestCharged
<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUploadOutput>
   <Location>string</Location>
   <Bucket>string</Bucket>
   <Key>string</Key>
   <ETag>string</ETag>
</CompleteMultipartUploadOutput>

Exemplos

A solicitação de carregamento completo com várias partes a seguir especifica três partes no CompleteMultipartUpload.

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

            <CompleteMultipartUpload>
             <Part>
                <PartNumber>1</PartNumber>
               <ETag>"a54357aff0632cce46d942af68356b38"</ETag>
             </Part>
             <Part>
                <PartNumber>2</PartNumber>
               <ETag>"0c78aef83f66abc1fa1e8477f296d394"</ETag>
             </Part>
             <Part>
               <PartNumber>3</PartNumber>
               <ETag>"acbd18db4cc2f85cedef654fccc4a4d8"</ETag>
             </Part>
            </CompleteMultipartUpload>
        


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
            Connection: close
            Server: bigfile

            <?xml version="1.0" encoding="UTF-8"?>
            <CompleteMultipartUploadResult xmlns="http://bigfile.brascloud.com.br:443/doc/2006-03-01/">
             <Location>http://bucket.bigfile.brascloud.com.br:443/Example-Object</Location>
             <Bucket>Example-Bucket</Bucket>
             <Key>Example-Object</Key>
             <ETag>"3858f62230ac3c915f300c664312c11f-9"</ETag>
            </CompleteMultipartUploadResult>


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.