Get a resumable file's content

Contents

Retrieve the content of a resumable file.

Endpoint URL: {network.internalDNSName or network.proxyURL} received in DeviceInformation

Request Syntax


GET /v2/files/:id/resumable/content



Request Headers

Parameter Description Required
Accept-Encoding Use value gzip in Accept-Encoding header to compress the response data. This reduces network traffic and improves response time.

Value of type: string
false
Authorization An access token with nas_read_only or nas_read_write scope as well as the File Permission with value ReadFile or FileOwner for the file or a parent.

Value of type: string
true
If-Match A previous response ETag or *. Return the object only if its entity tag (ETag) is the same as the one specified.

Value of type: string
false
If-None-Match A previous response ETag or *. Return the object only if its entity tag (ETag) is different from the one specified.

Value of type: string
false


Request Path Parameters

Parameter Description Required
id The file ID or the alias root.

Value of type: string
true


Request Query Parameters

Parameter Description Required
access_token An access token with nas_read_only or nas_read_write scope as well as the File Permission with value ReadFile or FileOwner for the file or a parent.

Value of type: string
true
download Whether to send the Content-Disposition attachment header.

Value of type: boolean

Default: false
false
length Read up to that amount of data from the resumable file.

Value of type: integer
false
offset The offset in the resumable file where to start reading the content.

Value of type: integer

Default: 0
false


200 Response

OK

Response Headers

Parameter Description Required
Content-Type The Media Type (MIME type) of the resumable file. false
Etag The ETag for the resumable file metadata and content. false


Response Payload

Parameter Description Required
content The Resumable File content true


Example

Sample request to download a resumable file content.

Request


GET /sdk/v2/files/oYkPWXdV1YvELf8Ta-PXI5agunJQr-w6KyEmskwk/resumable/content HTTP/1.1
Host: Endpoint-URL
Authorization: Bearer 9e9d3d16-f9b1-43dc-8599-d1db6fcedfa9

Response


HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Type: image/jpeg
Etag: "Bg"
Vary: Origin
Date: Mon, 29 Aug 2016 21:52:30 GMT
Transfer-Encoding: chunked

file content

Have question about this section?