Request Parameters of Resumable Upload
Type Definition
type UploadFileInput struct
Parameter Description
Field |
Type |
Optional or Mandatory |
Description |
---|---|---|---|
Bucket |
string |
Mandatory |
Bucket name |
Key |
string |
Mandatory |
Object name |
UploadFile |
string |
Mandatory |
Name of the local file to be uploaded |
PartSize |
int64 |
Mandatory |
Part size, in bytes. The value ranges from 100 KB to 5 GB. |
TaskNum |
int |
Optional |
Maximum number of files that can be uploaded concurrently in multipart mode. |
EnableCheckpoint |
bool |
Optional |
Whether to enable the resumable upload mode. The default value is False, indicating that this mode is disabled. |
CheckpointFile |
string |
Optional |
File used to record the upload progress. This parameter is effective only in the resumable upload mode. If the value of this parameter is empty, the file will be in the same directory as the local file to be uploaded. |
ACL |
Optional |
Pre-defined ACL |
|
WebsiteRedirectLocation |
string |
Optional |
Location where the object is redirected to, when the bucket is configured with website hosting. |
ContentType |
string |
Optional |
MIME type of the object |
SseHeader |
or |
Optional |
Header for server-side encryption |
StorageClass |
Optional |
Storage class of the object |
|
Metadata |
map[string]string |
Optional |
Customized metadata of the object |
Expires |
int64 |
Optional |
Lifecycle of the object to be uploaded, in days. |
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