I want to display PDF "inline" (view in PDF viewer of Chrome for example) when the client click for a download of a PDF file...
I worked with .htaccess but no result.
<IfModule mod_headers.c>
RequestHeader unset Proxy
<FilesMatch "\.(pdf|PDF)$">
Header set Content-type: "application/pdf"
Header set Content-Disposition: "inline; filename=FILENAME.pdf"
Allow from all
</FilesMatch>
</IfModule>
Any idea????.... ?
Edit:
Does not work:
<IfModule mod_headers.c>
RequestHeader unset Proxy
<FilesMatch "\.(pdf|PDF)$" >
ForceType application/octet-stream
Header add Content-Disposition "inline"
</FilesMatch>
</IfModule>