Request Parameter of PUT Part
Type Definition
type UploadPartInput struct
Parameter Description
|
Field |
Type |
Optional or Mandatory |
Description |
|---|---|---|---|
|
Bucket |
string |
Mandatory |
Bucket name |
|
Key |
string |
Mandatory |
Object name |
|
PartNumber |
int |
Mandatory |
Part number, which ranges from 1 to 10000 |
|
UploadId |
string |
Mandatory |
Multipart upload ID |
|
ContentMD5 |
string |
Optional |
Base64-encoded MD5 value of the part to be uploaded. It is provided for the OBS server to verify data integrity. |
|
SseHeader |
Optional |
Header for server-side encryption |
|
|
Body |
io.Reader |
Optional |
Data flow of the part |
|
SourceFile |
string |
Optional |
Path to the source file of the part |
|
Offset |
int64 |
Optional |
Start offset (in bytes) of a part in the source file. The default value is 0. |
|
PartSize |
int64 |
Optional |
Size (in bytes) of a part in the source file. The default value is the file size minus Offset. |
- Body and SourceFile cannot be used together.
- If both Body and SourceFile are nil, the size of the uploaded object is 0 bytes.
- Offset, PartSize, and SourceFile are used together to specify a part of the source file to be uploaded.
Last Article: Response Result of Initiate Multipart Upload
Next Article: Response Result of PUT Part
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.