Get file content for view by core in folder
Get file content for view by core in folder.
Заметка
[Since 3.2]
POST /api/v1/public/{linkUid}/{fileId}/viewByCor 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/a477b9cc-f5f0-4ce2-ab5b-
170809d783c6/d656f7b9-7560-42ee-b070-
9c97b4dee430/viewByCore?accessToken=LIPS6RZMctGAU2b1fM9Aqrm9x1carFXt' -i -X GET \
-H 'X-co-auth-token: a266151c71006deb84d683d267e6a2aa' \
-H 'If-None-Match: a477b9cc-f5f0-4ce2-ab5b-170809d783c6'
- Example response headers
HTTP/1.1 200 200 OK
X-co-request-id: vaoOHjfY6cWHP8HRrgKbewB2KaLNDIXY
Content-Disposition: attachment; filename="=?UTF-8?Q?testfile.txt?="; filename*=UTF-
8''testfile.txt
Content-Length: 20
Content-Type: text/plain
ETag: W/"d656f7b9756042eeb0709c97b4dee430e0e102b9ff40785fac8902d8bcbf227940"
X-co-web-client-only: true
[ content of the response is skipped ]
- Example response
HTTP/1.1 200 OK
X-co-request-id: vaoOHjfY6cWHP8HRrgKbewB2KaLNDIXY
Content-Disposition: attachment; filename="=?UTF-8?Q?testfile.txt?="; filename*=UTF-
8''testfile.txt
Content-Length: 20
Content-Type: text/plain
ETag: W/"d656f7b9756042eeb0709c97b4dee430e0e102b9ff40785fac8902d8bcbf227940"
X-co-web-client-only: true
[ some example content ]