Can I use event listener to process assets before they are uploaded, or is there any way to process them before they are uploaded? | Community
Skip to main content
Level 4
October 11, 2022
Solved

Can I use event listener to process assets before they are uploaded, or is there any way to process them before they are uploaded?

  • October 11, 2022
  • 1 reply
  • 693 views

Can I use event listener to process assets before they are uploaded, or is there any way to process them before they are uploaded?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Peter_Puzanovs

Hi Johann,

 

There are few ways we can achieve it,

 

You can listen to the JCR on event method. However in case of load on instance such implementation may cause troubles. 

 

Better possibly is to write your own filter that will trigger before file gets uploaded to the repository (1)

 

Additionally, AEM has wonderful Workflows system OOTB, please check it out to see if it can work for your usecase.

 

(1) https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6550-modify-the-filename-on-upload-before-executing-dam/m-p/375564

 

Regards,

Peter

1 reply

Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
October 11, 2022

Hi Johann,

 

There are few ways we can achieve it,

 

You can listen to the JCR on event method. However in case of load on instance such implementation may cause troubles. 

 

Better possibly is to write your own filter that will trigger before file gets uploaded to the repository (1)

 

Additionally, AEM has wonderful Workflows system OOTB, please check it out to see if it can work for your usecase.

 

(1) https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6550-modify-the-filename-on-upload-before-executing-dam/m-p/375564

 

Regards,

Peter