Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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