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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot