Form control: Asset picker

The assetPicker form control is a customized extension of the object picker that allows you to:

  • search for, and choose assets from the asset manager
  • browse and choose assets from the asset manager
  • upload and select assets into the asset manager

Arguments

In addition to the standard arguments for the object picker, the control can take:

allowedTypes (optional) Comma separated list of asset types that are accepted. e.g. "image", "document", or "png,jpg", etc.
maxFileSize (optional) Maximum size, in MB, for uploaded files

Example

<field name="images" control="assetPicker" allowedTypes="image" maxFileSize="0.5" multiple="true" sortable="true" />

Screenshot of an asset picker