Content/dam Image not loading in Server but downloaded directly. | Community
Skip to main content
Level 2
October 11, 2023
Solved

Content/dam Image not loading in Server but downloaded directly.

  • October 11, 2023
  • 1 reply
  • 518 views

Hi,

    While we are trying to access dam path(content\dam\asset.jpg) from the instance, the image preview is not loading in server but it's getting downloaded directly. Can anyone help why this issue happening?

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 aanchal-sikka

Hello @harinivr 

 

Set the disposition setting in dispatcher config. Example for pdf it would be:

 

<LocationMatch "\.(?i:pdf)$">
  ForceType application/pdf
  Header set Content-Disposition inline
</LocationMatch> 

 

1 reply

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
October 11, 2023

Hello @harinivr 

 

Set the disposition setting in dispatcher config. Example for pdf it would be:

 

<LocationMatch "\.(?i:pdf)$">
  ForceType application/pdf
  Header set Content-Disposition inline
</LocationMatch> 

 

Aanchal Sikka