Skip to content

file

Custom field type

All field types

An upload, optionally turned into a CMS Image or Document.

Written as
"Type": "file"
Valid on
Forms only
On a form
{{ file_field }} — the control object rendered on a Form. Not the same object as Stores.
Validators
minitems, maxsize, maxitems

Properties

Accepted in addition to the shared properties every definition carries.

Property Required Description
AllowMultiple Accepts more than one file.
Accept Browser file-type filter.
AutoCreateImages Turns an upload into a CMS Image.
AutoCreateDocs Turns an upload into a CMS Document.
AutoPublishCmsObject Publishes the created object immediately. Ignored unless an auto-create flag is on.
CreateInFolder Folder the created object is placed in. Ignored unless an auto-create flag is on.
CreateWithTags Tags applied to the created object. Ignored unless an auto-create flag is on.