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

HTML in dam do not render on the browser

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-dispo... 

2. Adobe Experience Manager Documentation: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/content-disposi...

 

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/osg...

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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-dispo... 

2. Adobe Experience Manager Documentation: https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/content-disposi...

 

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/osg...

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

Avatar

Level 4

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

tatrived_0-1698991287327.png
Also  i did unchecked this in my local but it's not working

Thanks in advance