Uploader

Replace default Alfresco document picker with Alvex Uploader on any form. With it you can attach files not only from Alfresco, but also from your computer on any form:

Use it to render:

  • packageItems on task forms
  • cm:content associations on any custom form

How to use it:

Using Files uploader on workflow forms

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.

Using Files uploader on other forms

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.

Github repo