Edit on GitHub
Jump to docs navigation

Field types / Filelist

Note: You are currently reading the documentation for Bolt 2.2. Looking for the documentation for Bolt 5.2 instead?

A simple list field type to upload/select files. Also contains a title text field for each file.

Basic Configuration:

        attachments:
            type: filelist

Example usage in templates:

{% for file in record.attachments %}
    <a href="/files/{{ file.filename }}">{{ file.title }}</a>
{% endfor %}

Options:

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 extensions.
        attachments:
            type: filelist
            extensions: [ png, pdf ]


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.