Field Types / File field
Simple file upload/select field.
Basic Configuration:¶
attachment:
type: file
Example usage in templates:¶
{{ record.attachment.filename }}
or
{{ record.attachment.path }}
Options:¶
The field has a few options to change the appearance and functionality of the field.
extensions
Allows you to restrict users to only be able to upload files with certain file extensionsupload
Allows you to upload files for this field into a specified directory so they remain grouped. See also theupload_location
setting.
attachment:
type: file
extensions: [ png, pdf ]
upload: portfolio
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.