File

A downloadable file asset such as a PDF or zip. Inferred from a non-image src, or from an a href marked download.

When it is used

Point a link at a token and mark it download, or use a token as the source of a non-image asset, and nanoesis infers a file field.

It is inferred from the markup. The file is published alongside the page and the link resolves to it.

Example

A download link with a token becomes a file picker:

<a href="{brochure}" download>Download the brochure</a>

In the editor

In the editor this is a file picker: upload a document and the link points to it once published.

Use it for PDFs, spreadsheets, archives and anything that is not an image.