Downloads a single file resource (aka. the URL address to the file). Example:

`} />
API details
GET
/api/files/collectionIdOrName/recordId/filename
Path parameters
Param Type Description
collectionIdOrName String ID or name of the collection whose record model contains the file resource.
recordId String ID of the record model that contains the file resource.
filename String Name of the file resource.
Query parameters
Param Type Description
thumb String Get the thumb of the requested file. If the thumb size is not defined in the file schema field options or the file resource is not an image (jpg, png, gif, webp), then the original file resource is returned unmodified.
token String Optional file token for granting access to protected file(s).
For an example, you can check "Files upload and handling".
download Boolean If it is set to a truthy value (1, t, true) the file will be served with Content-Disposition: attachment header instructing the browser to ignore the file preview for pdf, images, videos, etc. and to directly download the file.
Responses
{#each responses as response (response.code)} {/each}
{#each responses as response (response.code)}
{/each}