Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

view Html files from dam in AEM as cloud Service

Avatar

Level 2

Hi ALL,

 

How to view html, pdf, xlsx, docx, svg png files from dam in aem as cloud service.

i have removed the blacklisted "text/html". but not able to view htmls.

 http://localhost:4502/system/console/configMgr/com.day.cq.dam.core.impl.servlet.SafeBinaryGetServlet

 

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@naresh5361 Those above scenario has been explained for AEM on-prem.(Just for your info). However, unfortunately, as I described above for AEMaaCS Content disposition filter is Not supported  - Please visit this documentation for more details: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/assets-cloud...

SantoshSai_0-1669054664889.png

 

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @naresh5361,

Along with removing "text/html" from the configuration here http://localhost:4502/system/console/configMgr/com.day.cq.dam.core.impl.servlet.DamContentDispositio...

you should also add Content Disposition Paths the in Apache Sling Content Disposition Filter if it doesn't work.

However, my analysis is

  1. I don't think you can render the asset directly. You would need a renderer that can use this asset URL to render. 
  2. Since, AEM DAM is an asset container, html can be uploaded and used as an asset in other html, but html cannot be opened directly from DAM. 
  3. Please review this [0] article as it says - Content disposition filter is Not supported for AEMaaCS.

         Screen Shot 2022-11-18 at 10.35.02 PM.png

[0]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/assets-cloud...

Hope that helps!

Regards,

Santosh

Avatar

Level 2

Hi @SantoshSai ,

 

Thanks for responding to this. 

yes i have added asset path to Apache Sling Content Disposition Filter. but not working.

not only html i have other mime type in Dam. Is there any other solution to render those files in dam using vanity url.

what is the renderer in this "You would need a renderer that can use this asset URL to render." could you please clarify.

and is there any vanity url to render an asset. 

 

Thanks.

 

 

 

 

Avatar

Correct answer by
Community Advisor

@naresh5361 Those above scenario has been explained for AEM on-prem.(Just for your info). However, unfortunately, as I described above for AEMaaCS Content disposition filter is Not supported  - Please visit this documentation for more details: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/assets-cloud...

SantoshSai_0-1669054664889.png

 

Avatar

Level 2

HI @SantoshSai ,

 

Understood. But, is there any posibility to achivie this use case in aem cloud as service.

Thanks.