Returns the content of the file with the specified id.

GET

Returns the content of the latest file version. If the file is an image and the width and height are set, the image will resized before it is returned. The get the content it is necessary to have the ‘read’ permissions on the entity the file is related to.

Required Permissions: Any authenticated user.

Path parameters

fileIdstringRequired

The id of the file.

Query parameters

widthdoubleOptional

Set width to resize.

heightdoubleOptional

Set height to resize.

cropbooleanOptional

Whether to crop the image when resizing it.

enlargebooleanOptionalDefaults to true

Whether to enlarge the image if the width/height are bigger than the original image.

inlinebooleanOptionalDefaults to false

If inline is true, content-disposition header is inline, else it is attachment.

Response

OK

Built with