Attach files from local drive or select existing files in the repository on any form:
- packageItems on workflow forms
- cm:content associations on any custom form
Compatible with Alfresco 5.1.
This component depends on:
Download ready-to-use Alvex components via Alvex.
To build Alvex follow this guide.
Add PackageItems field to the form and use the following field configuration in Appearance section of your type Share configuration:
<field id="packageItems">
<control template="/alvex-uploader.ftl">
<control-param name="uploadDirectory">uploads</control-param>
<control-param name="createUploadDirectory">true</control-param>
</control>
</field>
All uploaded documents will be saved to the folder named in parameter uploadDirectory.
Use the following field configuration in Appearance section of your type Share configuration:
<field id="prefix:files">
<control template="/alvex-uploader.ftl">
<control-param name="uploadDirectory">uploads</control-param>
<control-param name="createUploadDirectory">true</control-param>
<control-param name="viewType">mini</control-param>
</control>
</field>
prefix:files should be an association with cm:content element or its child.