Request Parameters of Resumable Download
Type Definition
type DownloadFileInput struct
Parameter Description
Field |
Type |
Optional or Mandatory |
Description |
---|---|---|---|
Bucket |
string |
Mandatory |
Bucket name |
Key |
string |
Mandatory |
Object name |
VersionId |
string |
Optional |
Object version ID |
DownloadFile |
string |
Optional |
Full path of the local directory to which the object is downloaded. If the value is empty, the downloaded object is saved in the directory where the program is executed. |
PartSize |
int64 |
Optional |
Part size, in bytes. |
TaskNum |
int |
Optional |
Maximum number of files that can be downloaded concurrently in multipart mode. |
EnableCheckpoint |
bool |
Optional |
Whether to enable the resumable download mode. The default value is False, indicating that this mode is disabled. |
CheckpointFile |
string |
Optional |
File used to record the download progress. This parameter is effective only in the resumable download mode. If the value is empty, the file is in the same local directory as the downloaded object. |
Origin |
string |
Optional |
Origin specified in the preflight request. Generally, it is a domain name. |
RequestHeader |
string |
Optional |
HTTP headers in a cross-origin request |
SseHeader |
Optional |
Header for server-side decryption |
|
IfMatch |
string |
Optional |
Returns the source object if its ETag is the same as the one specified by this parameter; otherwise, an error is returned. |
IfNoneMatch |
string |
Optional |
Returns the source object if its ETag is different from the one specified by this parameter; otherwise, an error is returned. |
IfModifiedSince |
time.Time |
Optional |
Returns the object if it is modified after the time specified by this parameter; otherwise, an error is returned. |
IfUnmodifiedSince |
time.Time |
Optional |
Returns the object if it remains unchanged since the time specified by this parameter; otherwise, an error is returned. |
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