Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 719 Bytes

file.md

File metadata and controls

37 lines (28 loc) · 719 Bytes
title
File field

File field

Simple file upload/select field.

Basic Configuration:

        attachment:
            type: file

Example usage in templates:

{{ record.attachment }}

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 extensions
  • upload Allows you to upload files for this field into a specified directory so they remain grouped. This directory will be created in {%web%}/files/
        attachment:
            type: file
            extensions: [ png, pdf ]
            upload: portfolio