AEM 6.1 : DAM - Prevent adding of some asset format | Community
Skip to main content
Level 2
February 3, 2016
Solved

AEM 6.1 : DAM - Prevent adding of some asset format

  • February 3, 2016
  • 3 replies
  • 2079 views

Hi, 

 

Is there anyway to prevent assets which match a format to be added in the DAM on AEM 6.1? 

For example, can I say that no one can put videos in the DAM ?

 

Thanks,

Grégory

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 Kunal_Gaba_

I don't know whether there is any OOTB configuration to limit the file types. But 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. 

3 replies

Kunal_Gaba_
Kunal_Gaba_Accepted solution
February 3, 2016

I don't know whether there is any OOTB configuration to limit the file types. But 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. 

tc94524330
Level 3
February 3, 2016

The best approach i would say is having a workflow launcher. Workflow launchers will give you the ability to that easily.

Level 2
February 3, 2016

Thanks Kunal, I think your proposal can do what I'm looking for. 

 

tc94524330, thanks for you answer but if I had a workflow launcher, this means the asset is already in the DAM so this is not an option.