Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

 


Santosh Sai

AEM BlogsLinkedIn


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


Santosh Sai

AEM BlogsLinkedIn


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

 


Santosh Sai

AEM BlogsLinkedIn


Avatar

Level 2

HI @SantoshSai ,

 

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

Thanks.