HTML in dam do not render on the browser | Community
Skip to main content
Level 3
October 25, 2023
Solved

HTML in dam do not render on the browser

  • October 25, 2023
  • 1 reply
  • 701 views

It looks like items (like an html file) in dam do not render on the browser, instead they instantly download.
I got a solution for the local
https://stackoverflow.com/questions/42447453/is-there-a-way-to-upload-html-pages-into-aem-dam
How to do that in other enviorment (dev/prod)
Can someone help me with that or someone has a better solution to do that?

Thanks in Advance

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 EstebanBustamante

That behavior is expected for specific paths, and it is driven by the "Content-Disposition" header, which is appended. There is a configuration mentioned in the link you shared to update it. Here are some references to help understand what's going on:

1. Adobe Community Link: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-content-disposition-filter/m-p/164687 

2. Adobe Experience Manager Documentation: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/content-disposition-filter.html?lang=en

 

That being said, if you are asking how to deploy that configuration for another environment through code, please follow this link: https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/developing/basics/osgi-configurations.html?lang=en

If you are inquiring whether this is the correct approach, it will depend on your use case, but I think it's a valid solution. Just be aware of any potential security concerns.

 

Hope this helps.

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 25, 2023

That behavior is expected for specific paths, and it is driven by the "Content-Disposition" header, which is appended. There is a configuration mentioned in the link you shared to update it. Here are some references to help understand what's going on:

1. Adobe Community Link: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-content-disposition-filter/m-p/164687 

2. Adobe Experience Manager Documentation: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/content-disposition-filter.html?lang=en

 

That being said, if you are asking how to deploy that configuration for another environment through code, please follow this link: https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/developing/basics/osgi-configurations.html?lang=en

If you are inquiring whether this is the correct approach, it will depend on your use case, but I think it's a valid solution. Just be aware of any potential security concerns.

 

Hope this helps.

Esteban Bustamante
tatrivedAuthor
Level 3
November 3, 2023

Hi Esteban ,
Thanks for reply 🙂
My structure is something like that and i have uploaded in dam Can i access them with URL?


Also  i did unchecked this in my local but it's not working

Thanks in advance