Restrict dam folder to upload specific asset | Community
Skip to main content
arnab26
Level 2
January 18, 2017
Solved

Restrict dam folder to upload specific asset

  • January 18, 2017
  • 1 reply
  • 1808 views

Hi All,

Is there any OOTB functionality in AEM6.1, by which we can set some dam folder(/content/dam/xyz) to accept only some specific type of asset like, pdf or xls etc to be uploaded?

Thanks.

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 kautuk_sahni

Hi 

Please have a look at this similar forum thread:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__ibof-we_have_a_requiremen.html

//

    There is a community article for restricting the upload based on size of the file - http://experience-aem.blogspot.com/2014/12/aem-6-sp1-classic-ui-restrict-large-or-small-files-upload.html. You can customize it     and add your logic of checking the file types. You can either just check the file extensions in the javascript or invoke a backend servlet to check the file headers for the mime types. Also, this is limited to     Classic UI only. 

 

    'DAM Update Asset' workflow, there you can configure which file types should be allowed. Similarly, you can write custom workflowprocess service to check the type and size 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 you logic to restrict anything.

    Link:- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

 

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__maz2-hi_is_there.html#forum__maz2-hi_is_there__rtyj-i_dont_knowwhether

// AEM 6.1 : DAM - Prevent adding of some asset format

I hope this would help you.

~kautuk

1 reply

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
January 18, 2017

Hi 

Please have a look at this similar forum thread:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__ibof-we_have_a_requiremen.html

//

    There is a community article for restricting the upload based on size of the file - http://experience-aem.blogspot.com/2014/12/aem-6-sp1-classic-ui-restrict-large-or-small-files-upload.html. You can customize it     and add your logic of checking the file types. You can either just check the file extensions in the javascript or invoke a backend servlet to check the file headers for the mime types. Also, this is limited to     Classic UI only. 

 

    'DAM Update Asset' workflow, there you can configure which file types should be allowed. Similarly, you can write custom workflowprocess service to check the type and size 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 you logic to restrict anything.

    Link:- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

 

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__maz2-hi_is_there.html#forum__maz2-hi_is_there__rtyj-i_dont_knowwhether

// AEM 6.1 : DAM - Prevent adding of some asset format

I hope this would help you.

~kautuk

Kautuk Sahni