


Hi, I have a file on this path http://localhost:4502/assetdetails.html/content/dam/we-retail/en/activities/hiking/hiking_5.jpg, when I try to access the file by direct link like this: http://localhost:4502/content/dam/we-retail/en/activities/hiking/hiking_5.jpg the file is download but It should open on browser windows not do download direct. What are happening? The response header might be wrong how can I fix it?
I fixed this issue by adding the following code on my dispatcher .conf file.
<LocationMatch "\.(?i:txt)|(?i:pdf)|(?i:xml)$">
Header set Content-Disposition inline
</LocationMatch>
It will open the txt, pdf and xml file on the browser itself.