Data.Cloud.AmazonAPI.TAmazonStorageService.UploadPart
Delphi
function UploadPart(const BucketName, ObjectName, UploadId: string; PartNumber: Integer; Content: TArray<Byte>;
out Part: TAmazonMultipartPart;
const ContentMD5: string = '';
ResponseInfo: TCloudResponseInfo = nil;
const BucketRegion: TAmazonRegion = amzrNotSpecified): Boolean;
C++
bool __fastcall UploadPart(const System::UnicodeString BucketName, const System::UnicodeString ObjectName, const System::UnicodeString UploadId, int PartNumber, System::DynamicArray<System::Byte> Content, /* out */ TAmazonMultipartPart &Part, const System::UnicodeString ContentMD5 = System::UnicodeString(), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0), const System::UnicodeString BucketRegion = System::UnicodeString());
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp |
Data.Cloud.AmazonAPI | TAmazonStorageService |
Description
Uploads a part to an initiated multipart upload.
All parts except the last part must be at least 5 MB in size. Part numbers can be any number in the range from 1 to 10,000. If you specify a part number that has already been uploaded, the content will be replaced by this content.
The method returns True if successful, and False otherwise.
The following table shows the significance of the parameters:
Parameter | Description |
---|---|
|
The name of the bucket the multipart upload's object is for. |
|
The name of the multipart upload's object. |
|
The multipart upload's unique ID. |
|
The part number to assign to this content. |
|
The content to upload. |
|
The part result (ETag and Number) if the request was successful. |
|
The optional MD5 of the content being sent, for integrity checking. |
|
The optional class for storing response info into. |