File Attachment component shows generic errors for unsupported file types in AEM Forms
Adobe Experience Manager (AEM) Forms may display a generic error instead of the configured custom validation message for unsupported file types because the File Attachment component references a non-existent schema key. To resolve the issue, upgrade the AEM Forms Core Components package to version 1.1.80 or later and verify the custom validation message.
Description description
Environment
Adobe Experience Manager (AEM) Forms
Issue/Symptoms
- Uploading an unsupported file type through the File Attachment component displays a generic pop-up error instead of the configured custom validation message.
- Custom file size validation messages display correctly.
- Custom validation messages for unsupported file types aren’t displayed.
Root cause
The File Attachment component’s client-side code references a non-existent schema key for file type validation messages, causing the component to display the generic error. The source states that this issue is addressed in a newer Core Components package.
Resolution resolution
Follow the steps below to resolve the issue:
- Check the current version of the AEM Forms Core Components package.
- If you’re using a version prior to 1.1.80, upgrade to version 1.1.80 or later, where the issue is resolved.
- Download the latest compatible Core Components package for the AEM Forms version from the official Adobe distribution channel or package share.
- Install the updated package using AEM Package Manager.
- After installation, allow the server a few minutes to stabilize.
- Test the File Attachment component by uploading files with unsupported file types and verify that the configured custom validation message appears as expected.
recommendation-more-help
experience-cloud-kcs-help-kbarticles