GET /wopi/files/(file_id)/contents
Retrieves a file from a host for the HTTP://server/<...>/wopi*/files/<id>/contents operation.
Parameters
| Name | Type | Description |
|---|
| file_id | string | The file ID that must be URL safe. |
Query parameters
| Name | Type | Description |
|---|
| access_token | string | An access token that the host uses to determine whether the request is authorized. |
| Name | Type | Presence | Description |
|---|
| X-WOPI-MaxExpectedSize | integer | optional | The upper bound of the expected size of the file being requested. The host should use the maximum value of a 4-byte integer if this value isn't set in the request. If the file requested is larger than this value, the host must respond with a 412 Precondition Failed. |
| Name | Type | Presence | Description |
|---|
| X-WOPI-ItemVersion | string | optional | The file version. |
Response body
The response body must be the full binary contents of the file.