Get file content
A request to retrieve file content.
POST /api/v1/files/{fileId}/content HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
fileId | The ID of the file. |
- Request parameters
| Parameter | Description |
|---|---|
download | If this flag set to true, Content-disposition: attach header will be set in response |
- Example request
curl 'http://localhost:8080/api/v1/files/189338668/content?download=true' -i -X GET \
-H 'X-co-auth-token: 3bfc60de06d87b7503f740aaae204c59'
- Example response
HTTP/1.1 200 OK
X-co-request-id: 503239376a756f333844627362385047
Content-Disposition: attachment; filename*=UTF-8''testfile.txt
Content-Type: text/plain
Content-Length: 20
[ some example content is skipped ]