Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How can we restrict DAM from uploading assets without an extension

P_V_Nair
Level 2
Level 2

There seems to be bug in our project where in I am unable to delete an asset which was loaded without an extension.

I tried to delete and we get a console error.

How can we restrict uploading assets without an extension to DAM? Do we have anything OOB for this fundtionality?

AEM Asset DAM DAM Assets
1 Accepted Solution
fanindras
Correct answer by
Level 5
Level 5

Hi @P_V_Nair ,

 

There is no direct OOTB way of restricting upload of assets without an extension, but you could achieve this with few configurations/customisations as below:

 

1.  AEM by default identifies the mime type of an asset using its extension. For assets without an extension, there will not be any mime type detected. So, to restrict upload of these kind of assets that don't have a detected mime type, Disable the "Allow All Mime" Flag of DAY CQ Asset Upload Restriction configuration. But, while doing so, please make sure that you are adding all the expected different Mime types in the "Allowed Asset MIMEs" field.

2. Customise the DAM Update Asset Workflow with an additional process step that checks for extension less assets and deletes them.

 

Hope this helps.

Thanks!

View solution in original post

3 Replies
fanindras
Correct answer by
Level 5
Level 5

Hi @P_V_Nair ,

 

There is no direct OOTB way of restricting upload of assets without an extension, but you could achieve this with few configurations/customisations as below:

 

1.  AEM by default identifies the mime type of an asset using its extension. For assets without an extension, there will not be any mime type detected. So, to restrict upload of these kind of assets that don't have a detected mime type, Disable the "Allow All Mime" Flag of DAY CQ Asset Upload Restriction configuration. But, while doing so, please make sure that you are adding all the expected different Mime types in the "Allowed Asset MIMEs" field.

2. Customise the DAM Update Asset Workflow with an additional process step that checks for extension less assets and deletes them.

 

Hope this helps.

Thanks!

View solution in original post