From version < 2.1 >
edited by Vincent Massol
on 2019/12/12
To version < 3.1
edited by Vincent Massol
on 2019/12/12
<
Change comment: There is no comment for this version

Summary

Details

ReleaseNotes.Code.ChangesClass[0]
Short Description
Screenshots
... ... @@ -1,0 +1,1 @@
1 +attachment-picker.png

A new widget is available to help users select or upload attachments. Here's how you can use it:

{{velocity}}
{{html clean="false"}}
#set ($attachmentPickerParams = {
  'name': 'attachment',
  'value': '[email protected]',
  'data-upload-allowed': $services.security.authorization.hasAccess('edit'),
  'data-accept': 'image/,.mp4,.pdf',
  'multiple': 'multiple',
  'placeholder': 'Select attachment'
})
#attachmentPicker($attachmentPickerParams)
{{/html}}
{{/velocity}}

Checkout the Suggest Widget documentation for more information.

Get Connected