Get a resumable file's content


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

ParameterDescriptionRequired
Accept-EncodingUse value gzip in Accept-Encoding header to compress the response data. This reduces network traffic and improves response time.

Value of type: string
false
AuthorizationAn 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-MatchA 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-MatchA 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

ParameterDescriptionRequired
idThe file ID or the alias root.

Value of type: string
true


Request Query Parameters

ParameterDescriptionRequired
access_tokenAn 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
downloadWhether to send the Content-Disposition attachment header.

Value of type: boolean

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

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

Value of type: integer

Default: 0
false


200 Response

OK

Response Headers

ParameterDescriptionRequired
Content-TypeThe Media Type (MIME type) of the resumable file.false
EtagThe ETag for the resumable file metadata and content.false


Response Payload

ParameterDescriptionRequired
contentThe Resumable File contenttrue


Example

Sample request to download a resumable file content.

Request

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

Response

HTTP/1.1 200 OKAccept-Ranges: bytesContent-Type: image/jpegEtag: "Bg"Vary: OriginDate: Mon, 29 Aug 2016 21:52:30 GMTTransfer-Encoding: chunkedfile content