Tuesday, 9 October 2018

How to upload with folders & subfolders along with files in to AEM DAM? How to make html files uploaded in the DAM to render in the browser rather than downloading?

I've worked with a POC task to find a solution to upload web pages (html's, css and js files) into AEM DAM. This is a migration activity from Sharepoint and these pages will be placed in folders & subfolders. OOB DAM doesn't support folder upload. But we can attain this by using the AEM desktop application. Upload folders and subfolders along with files by connecting AEM instance to the AEM desktop application.

Please go through these articles to get more information about the AEM desktop application.

https://helpx.adobe.com/experience-manager/desktop-app/release-notes.html
https://helpx.adobe.com/experience-manager/desktop-app/aem-desktop-app.html

To render this as html in the browser we need to make some configuration changes.

1) Need to remove the mime type text/html from Blacklisted Mime Types of Dam Safe Binary Filter. 2) We need to uncheck the Enable for All Resource paths from Apache Sling Content Disposition Filter. (Additional security features added in recent versions. So you may need to compromise on this part in the implementation)