File
This field type renders a file picker.
Parameters
formats - an array of the allowed file extensions;
multiple - set to
true
to allow selecting multiple files.
Example
The code below renders a required file picker with the custom_field
name and "Custom field" label. It allows selecting multiple JPG, PNG and GIF image files.
Last updated