GetFile
GET /wopi/files/(file_id)/contents
Requests a message to retrieve a file for the HTTP://server/<…>/wopi*/files/<id>/contents operation.
The response body must contain the full file contents in the binary format.
Parameters
Name | Description | Type |
file_id | The file ID that must be URL safe. | string |
Query parameters
Name | Description | Type |
access_token | An access token that the host will use to determine whether the request is authorized. | string |
Request headers
Name | Description | Type | Presence |
X-WOPI-MaxExpectedSize | The maximum expected size of the file being requested. The host should use the maximum value of a 4-byte integer if this value is not set in the request. If the file requested is larger than this value, the host must respond with 412 Precondition Failed. | integer | optional |
Response headers
Name | Description | Type | Presence |
X-WOPI-ItemVersion | The file version. | string | optional |
Response body
The response body must be the full binary contents of the file.
当前内容版权归 Onlyoffice 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Onlyoffice .