Get file contents
Downloads the specified file from a media directory.
Query parameters
Return the last N lines instead of the whole file
When 1, set a playback-oriented content type instead of a forced attachment
When 1, force attachment download for images
Response
File contents; content type varies by file extension and query params
Changes
Changed in 2 of the 28 revisions of this API.235
- ○
added the new optional
queryrequest parameterattachnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterplaynew-optional-request-parameter
- ○
added the new optional
queryrequest parametertailnew-optional-request-parameter
- ○
added the media type
application/octet-streamfor the response with the status200response-media-type-added
- ○
added the media type
text/plainfor the response with the status404response-media-type-added
- ○
- ▲
removed the media type
application/octet-streamfor the response with the status200response-media-type-removed
- ▲
removed the media type
text/plainfor the response with the status404response-media-type-removed
- ●
deleted the
queryrequest parameterattachrequest-parameter-removed
- ●
deleted the
queryrequest parameterplayrequest-parameter-removed
- ●
deleted the
queryrequest parametertailrequest-parameter-removed
- ▲