Downloads a file.
Operation description
For information about best practices for downloading a file.
Debugging
Authorization information
Request syntax
GET /v2/file/download HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| share_id | string | No | The share ID. If you want to manage a file by using a share link, carry the | 7JQX1FswpQ8 |
| drive_id | string | No | The drive ID. | 1 |
| file_id | string | Yes | The file ID. | 9520943DC264 |
| image_thumbnail_process | string | No | The method used to generate the thumbnail of an image. If this parameter is specified, you are redirected to the URL of the generated thumbnail. | image/resize,m_fill,h_128,w_128,limit_0 |
| video_thumbnail_process | string | No | The method used to generate the thumbnail of a video. If this parameter is specified, you are redirected to the URL of the generated thumbnail. | video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast |
| office_thumbnail_process | string | No | The method used to generate the thumbnail of a document. If this parameter is specified, you are redirected to the URL of the generated thumbnail. | image/resize,w_200 |
Response parameters
Examples
Sample success responses
JSONformat
{}Error codes
For a list of error codes, visit the Service error codes.
