Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

restrict size of pdf while uploading in dam


Level 4

I want to throw error , if author is uploading pdf more than 2 mb inside dam.

File type only on pdf .  it should allow image and video more than 2 mb 


@arunpatidar @Asutosh_Jena_ @

3 Replies


Community Advisor

Hi @raushan123 


Did you check the below article?



It has the implementation to restrict specific file type with 2 Mb limit.


Here is another approach with filter to restrict. You can apply for specific file type as well.



Let us know if you are looking for something else.