PDF not showing on visitors browser -


i have webpage (http://optiswissopen2015.ch/page/noticeboard) pdfs on it. of them linked same way. on browsers (ie8 sure) shown text instead of open pdf viewer.

<a href=" /files/noticeboard/1436883318_sism2015.pdf"           download runat="server" class="button color3"> 

my first thought was, may have problem in header. converting them .ps , doesn't help.

what can do, open right browsers? last option, zip them :-(

yes, the issue in file content type returned pdf files on server. verify use curl -i [url] or wget -s [url] or online tool.

for example, 1436883318_sism2015.pdf returns (incorrect):

http/1.1 200 ok etag: "[omitted]" last-modified: tue, 14 jul 2015 14:15:18 gmt content-type: text/plain content-length: 1188394 date: mon, 27 jul 2015 17:19:21 gmt accept-ranges: bytes server: litespeed connection: close 

and anmedleguide.pdf returns correct header:

http/1.1 200 ok date: mon, 27 jul 2015 17:21:25 gmt server: apache/2.4.10 (unix) last-modified: fri, 17 jul 2015 13:07:01 gmt etag: "[omitted]" accept-ranges: bytes content-length: 932698 content-type: application/pdf 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -