Hello,
Using workflows, is it possible to display an informative error message (such as a dialog) if certain conditions are met? My use case is that we are wanting to restrict upload to the DAM for select users and folders. I figured a Workflow would probably be the most efficient way to accomplish this. However, I am struggling to find a good way to return a message to a user indicating that the upload failed due to file size restrictions. I thought about using a "Participant Step", but I would prefer something more immediately obvious in the UI, such as a popup dialog. Is this possible?
We are using AEM 6.5.10.
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
When you upload or drop an asset in one of the DAM folder, immediately DAM Update Asset workflow triggers on the asset being uploaded and executes several steps like creating renditions, metadata extraction and others.
You can edit the DAM Update Asset workflow and add a custom process step after the Start step in the model to run the checks and terminate the workflow, but this would not give an interactive pop-up for User.
To notify user through an interactive pop-up, I see the following as an potential option:
I hope this helps.
Thanks
Lokesh
When you upload or drop an asset in one of the DAM folder, immediately DAM Update Asset workflow triggers on the asset being uploaded and executes several steps like creating renditions, metadata extraction and others.
You can edit the DAM Update Asset workflow and add a custom process step after the Start step in the model to run the checks and terminate the workflow, but this would not give an interactive pop-up for User.
To notify user through an interactive pop-up, I see the following as an potential option:
I hope this helps.
Thanks
Lokesh
Thanks, that was very helpful. I will have to more research on the specifics for my version of AEM, but sounds like a very robust solution.
Hi @KMarchewa , If you want to show an error pop up to the user on upload you may want to check this out https://experience-aem.blogspot.com/2021/05/aem-cloud-service-configure-file-upload-max-size-per-ass...
This would help to show error on UI.
Thanks! That article was very helpful. Do you know if there is an efficient way to get the current user's role in the clientlib ("/apps/eaem-cs-restrict-assets-size/supported-file-sizes" in the example)?
Views
Likes
Replies
Views
Likes
Replies