restrict size of pdf while uploading in dam | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Asutosh_Jena_
Community Advisor
Community Advisor
November 18, 2021

Hi @raushan123 

 

Did you check the below article?

http://experience-aem.blogspot.com/2014/12/aem-6-sp1-classic-ui-restrict-large-or-small-files-upload.html

 

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.

http://experience-aem.blogspot.com/2018/11/aem-6420-file-decode-filter-virus-scan-to-decode-uploaded-files-for-create-asset-servlet.html

 

Let us know if you are looking for something else.

 

Thanks!

Level 4
November 18, 2021

hi @asutosh_jena_  the first article is working fine in classic UI .

http://experience-aem.blogspot.com/2014/12/aem-6-sp1-classic-ui-restrict-large-or-small-files-upload...

 

but its not working in touch UI .

i am using aem cloud

 

Asutosh_Jena_
Community Advisor
Community Advisor
November 18, 2021