Skip to main content

File Attachment

Description

With the File Attachment feature, users can easily attach files to their forms. This component can be customized to allow multiple files and specify the maximum size of each file. Additionally, it supports a range of file formats that are compatible with adaptive forms. 

To ensure that recipients only receive relevant files, AEM authors have the option to restrict the types of files that can be attached. By default, audio, video, image, plain text, and PDF files are accepted. However, authors can easily adjust the settings to allow for Microsoft Office files as well.

Please keep in mind that if you are using a form connected to a Sharepoint list, it is important to retain the name field as "Attachments".

Configuration

Select the component and click the wrench icon on the component toolbar to configure the properties for File Attachment.

 

The following list is all that you need to configure to set up the File Attachment button.

  • Name: When using a SharePoint List, it is required to set the value as "Attachments" (case sensitive).
  • Title: This label is used above the attachment button.
  • Hide Title: Check this box if you only want to show the button and its label on this field.
  • Upload Button Title: This field assigns the button text.
  • Allow Multiple Files (Checkbox): Check the box to allow multiple attachments
  • Maximum File Size: Set the file size limit in MB to prevent people from uploading oversized files.
  • Supported File Types: This is where you can choose which file types users can attach.

Authoring

Removing Unwanted File Type

Click on the Wrench > Click on the Garbage Can icon next to the file type that should be prohibited.

Allowing Microsoft Office Files

Click on the Wrench > Change the "applications/pdf" into "applications/*" located under the side panel section.