Get file resource content

get/files/{fileId}/content

Retrieves the content of the file resource.

Request Samples

1

Response Samples

1Not Available

Path Parameters

NameTypeRequiredDescription
fileId
string
true

The identifier of the file resource for which to fetch content.

Query Parameters

NameTypeRequiredDescription
changeContentDisposition
boolean
false

Specifies whether to use the persisted content-disposition value. If this is specified to true and the word "attachment" appears in the content-disposition, it is changed to "inline". No other changes are made to the content-disposition value.

Header Parameters

NameTypeRequiredDescription
Access-Quarantine
boolean
false

If true, administrator can download the quarantine file content for analysis

If-Range
string
false

A conditional range request. The client must specify the previously returned ETag as the If-Range header value. This determines whether the resource has been modified. If it has been modified, the entire file is returned. Otherwise, only partial content is returned using the Range header.

Range
string
false

A specific range request. The value specifies the required byte range--for example, bytes=0-100.

Responses

StatusMeaningDescription
200OK

The request succeeded. The stream is returned in the response body.

206Partial Content

The partial content request succeeded. The requested range of data is in the response body.

403Forbidden

Non privilaged user trying to access quarantine file content, will get HTTP Forbidden error

Schema
404Not Found

No content was found for the specified identifier.

Schema
416Requested Range Not Satisfiable

An invalid or non-overlapping range was specified in the Range request header.