Custom File Name Length Validation in AEM Assets | Community
Skip to main content
Level 2
Oct 6, 2022 1:24 PM UTC
Solved

Custom File Name Length Validation in AEM Assets

Hi

I need to add custom validation for a number of characters in name of the file in the AEM 6.5 asset upload,
so a file with a name of more than a certain no of characters cannot be uploaded.


Any help would be greatly appreciated,

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SantoshSai
SantoshSaiAccepted solution
New Participant
Nov 27, 2022 4:13 AM UTC

Hi @shubham_naik ,

  • 'DAM Update Asset' workflow, there you can configure which file types should be allowed. Similarly, you can write custom workflowprocess service to check the name of the asset and restrict the uploads accordingly.
  • You could create a custom sling servlet, that will upload assets for you. There you can insert your logic to restrict anything.

Hope that helps!

Regards,

Santosh

Santosh Sai

3 replies

SantoshSai
SantoshSaiAccepted solution
New Participant
Nov 27, 2022 4:13 AM UTC

Hi @shubham_naik ,

  • 'DAM Update Asset' workflow, there you can configure which file types should be allowed. Similarly, you can write custom workflowprocess service to check the name of the asset and restrict the uploads accordingly.
  • You could create a custom sling servlet, that will upload assets for you. There you can insert your logic to restrict anything.

Hope that helps!

Regards,

Santosh

Translate
Santosh Sai
New Participant
Oct 6, 2022 1:57 PM UTC

Hi @shubham_naik 

Please find the below query which is similar to your requirement,

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extending-file-name-validation-in-aem-assets/td-p/298210

 

Hope this helps!

Translate
Level 2
Oct 10, 2022 2:10 PM UTC

Yes, I have already come across this post, but I want to add a custom alert message as well along with the condition.

Translate