File
Picks or uploads any file, such as a PDF or a ZIP, from a media library and stores its public path. The field needs a media library; without one it shows an error instead of a picker.
Add this field under fields in .pages.yml:
- name: brochure
type: file
options:
media: documents
extensions: [pdf]A saved value in YAML or Markdown front matter might look like:
brochure: /files/brochure.pdfA saved path must be inside the field's media library, so links to files on other websites are rejected.
Options
categories and extensions narrow what the library allows; see field settings.