BoltCM

Sophisticated, Lightweight and Simple

Jump to docs navigation
Edit on GitHub

Field types » Filelist field

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:

        attachments:
            type: filelist
            extensions: [ png, pdf ]

Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.
Spotted a typo, or have something to add? Edit this page on GitHub.