Skip to content

File and media fields

All types also accept common field options. Defaults below are API defaults unless marked SPA. Unspecified presentation options have no universal default; the active widget decides.

Select an existing file entity.

Options: references: explicitly use files (or your files module); multiple: false. SPA path selects the starting directory. Relation loading options apply.

{"identifier": "example_file", "type": "file", "options": {"references": "files"}}

Upload and relate file entities.

Options: references: files; multiple: false. SPA button and inline_list control presentation; relation options apply.

{"identifier": "example_upload", "type": "upload", "options": {"references": "files", "multiple": true}}

Directory selection backed by a file relation.

Options: references: files; multiple: false; SPA path sets the starting path.

{"identifier": "example_directory", "type": "directory", "options": {"references": "files"}}

Signature content in a long-text column.

Options: Shared field options. Index queries normally return only signed/unsigned; request full data to retrieve content.

{"identifier": "example_signature", "type": "signature", "options": {}}