• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Objects
  5. Complete Multipart Upload
  6. Requests

Requests

Syntax

POST /ObjectName?uploadId=uploadID HTTP/1.1 
 User-Agent: agent
 Host: bucketname.obs.example.com 
 Accept: */*
 Date: date 
 Content-Length: length 
 Authorization: auth
 Expect: expect
 <CompleteMultipartUpload> 
 <Part> 
 <PartNumber>partNum1</PartNumber> 
 <ETag>etag1</ETag> 
 </Part> 
 <Part> 
 <PartNumber>partNum2</PartNumber> 
 <ETag>etag2</ETag> 
 </Part> 
 <Part> 
 <PartNumber>partNum3</PartNumber> 
 <ETag>etag3</ETag> 
 </Part> 
 </CompleteMultipartUpload>

Request Parameters

This request uses one parameter to specify the ID of the multipart upload to be completed. Table 1 describes the parameter.

Table 1 Request parameter

Parameter

Description

Remarks

uploadId

Indicates the ID of the multipart upload to be completed.

Type: String

Mandatory

Request Headers

This request uses common headers. For details about common request headers, see section Common Request Headers.

Request Elements

This request contains elements to specify the part list for the multipart upload to be completed. Table 2 describes the elements.

Table 2 Request elements

Element

Description

Remarks

CompleteMultipartUpload

Indicates the container for the list of parts to be concatenated.

Type: XML

Mandatory

PartNumber

Indicates the number that identifies a part.

Type: Integer

Mandatory

ETag

Indicates the ETag returned after a part is uploaded.

Type: String

Mandatory