title |
---|
Filelist field |
A simple list field type to upload/select files. Also contains a title text field for each file.
attachments:
type: filelist
{% for file in record.attachments %}
<a href="/files/{{ file.filename }}">{{ file.title }}</a>
{% endfor %}
The field has a one option to change the 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.
attachments:
type: filelist
extensions: [ png, pdf ]
upload: portfolio