I have some html stored under /etc/library/module/
when I access these files on AEM 6.2 directly on Server i.e. https://localhost:4502/etc/library/module/module.html
It download's the file instead of opening it in the browser.
Looked at the response header it shows Content-Disposition : attachment.
In 6.0 we have com.day.cq.dam.core.impl.servlet.SafeBinaryGetServlet to control this header.
However in 6.2 this component seems to have deprecated.
Can anyone help me to understand how this content-disposition header be controlled in AEM 6.2?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Check if this works for you.
Apache Sling Content Disposition Filter (org.apache.sling.security.impl.ContentDispositionFilter)
Views
Replies
Total Likes
Hi,
Check if this works for you.
Apache Sling Content Disposition Filter (org.apache.sling.security.impl.ContentDispositionFilter)
Views
Replies
Total Likes
Add the path which you want to exclude in the above configuration
Thank you Lokesh..
Solution of adding an individual .html file works. However I have 20+ odd files which I'll need to add to this filter.
looks like this filter does not allow regex patterns (*.html)
just wondering if there is any alternative solution?
Views
Replies
Total Likes
atulj26424737 wrote...
Thank you Lokesh..
Solution of adding an individual .html file works. However I have 20+ odd files which I'll need to add to this filter.
looks like this filter does not allow regex patterns (*.html)
just wondering if there is any alternative solution?
Hi,
As your primary question is answered, i would request you to please close this question and create new question for follow-up questions.
~kautuk
Views
Replies
Total Likes
just unchecking the Enable Content Disposition for all paths . Still File is getting downloaded
Views
Replies
Total Likes
atulj26424737 Try adding this Configuration Biding: launchpad:resources/install/5/org.apache.sling.security-1.0.18.jar to Apache Sling Content Disposition Filter
priyajoshi
Remove the text/html form the Dam Safe Binary Filter osgi configuration
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies