Get file content by the public link for folder
note
[Since 2021.04]
Get file content by the public link for folder.
POST /api/v1/public/{linkUid}/{fileId}/content HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
linkUid | The UID of the link for the folder. |
fileId | The file id. |
- Request parameters
| Parameter | Description |
|---|---|
accessToken | The access token for file |
- Example request
curl 'http://localhost:8080/api/v1/public/fa90864f-305e-4461-b692-b8ce6eba1773/189377641/content?accessToken=wicwfqcfsafgrpwxjbgppgmbhxixwpej' -i -X GET \
-H 'X-co-auth-token: fde99812fd52fe2b0e1e7ed4bf48f3e5' \
-H 'If-None-Match: fa90864f-305e-4461-b692-b8ce6eba1773'
- Example response headers
HTTP/1.1 200 OK
X-co-request-id: 493845366b4e78505130597265386745
Content-Disposition: attachment; filename*=UTF-8''testfile.txt
Content-Length: 20
Content-Type: text/plain
[ content of the response is skipped ]