SproutCMS

This is the code documentation for the SproutCMS project

function multipleFileSelect()

UI for selecting or drag-and-drop uploading one or more files.

The field (refrenced by $name) is an array. If it's passed a a string, it will be comma-separated into an array.
As JsonForm will auto-convert arrays into comma-separated strings, this field can easily be used with a MySQL
field of type TEXT.

You cannot have more than one of these on the page at a time

This field WILL NOT operate in a non-admin environment

Usage

string Fb::multipleFileSelect ( string $name , array $attrs , array $options );

Arguments

  1. string $name
    Field name. If [] is not at the end, this will be appended.
  2. array $attrs
    Unused
  3. array $options
    Includes the following:
           'filter': (int) One of the filters, e.g. FileConstants::TYPE_IMAGE

Return value

  • string
    HTML