File Box

Overview #

Enables multiple file uploads and version tracking.

Field Type Parameters: #

  1. Max File Size (optional) – Maximum file size that can be uploaded to the server (in megabytes). Note: check your PHP settings as well.
  2. Folder (optional) – Directory where all uploaded files will be stored. Default is /images.
  3. File Type (optional) – List of acceptable file types, separated by spaces.

Value Processing Parameters: #

Basic usage:

{{ FieldName }}

Usage with parameters:

{{ FieldName(Security, Link, Icon, Target Window, List Format) }}
  1. Security (optional) – Encrypts the file link and restricts access time.
    • (Default. Public. Direct link to the file.)
    • timelimited – (Time Limited (8-24 minutes))
    • timelimited_longterm – (Time Limited (1.5 – 4 hours))
    • hostlimited – (Time/Host Limited (8-24 minutes))
    • hostlimited_longterm – (Time/Host Limited (1.5 – 4 hours))
    • private – (Time/Host/User Limited (8-24 minutes))
    • private_longterm – (Time/Host/User Limited (1.5 – 4 hours))
  2. Link (optional) – How the link should be displayed.
    • icon-filename-link – (Clickable Icon and File Name)
    • icon-link – (Clickable Icon)
    • filename-link – (Clickable File Name)
    • link-anchor – (Clickable Link)
    • icon – (Icon (IMG tag))
    • (Default. Link Only)
    • filename – (File Name)
    • link-to-icon – (Link to Icon file)
    • extension – (Extension)
    • file-size – (File Size)
  3. Icon (optional) – Select the icon size.
    • 16 – (16px X 16px Icon)
    • 32 – (32px X 32px Icon)
    • 48 – (48px X 48px Icon)
  4. Target Window (optional) – Target browser window for opening the link.
    • (Default. Parent)
    • _blank – (New Window With Navigation)
    • savefile – (Open Save File As Dialog Window)
  5. List Format (optional) – Format of the output list.
    • (Default. Ordered List – OL and LI HTML tags)
    • ul – (Unordered List – UL and LI HTML tags)
    • , – (Comma separated list)
    • ; – (Semicolon separated list)

Example:

{{ FieldName("timelimited","filename-link",32,"parent",",") }}


Pure Value (Unprocessed): #

Example:

{{ FieldName.value }}


Edit Record Parameters: #

Parameters for configuring the input element for multiple file uploads.

Basic usage:

{{ FieldName.edit }}

Usage with parameters:

{{ FieldName.edit(CSS Class, Attributes) }}
  1. CSS Class (optional) – Name(s) of the CSS class(es).
  2. Attributes (optional) – Optional attributes such as: disabled, onclick, onchange, etc.

What are your feelings

Leave a Reply

Updated on January 9, 2025