|
Posted by Steve Pugh on 04/10/06 12:49
MP wrote:
> On my pages I provide links for downloading binary files.
> But for some reason, when a link is clicked, browser downloads and opens
> the file in text format (i.e. "funny" text appears on the screen).
> And if I right-click the link and select the "Save target as...",
> extension ".htm" is incorrectly added on the file name. If I provide the
> correct extension, then it downloads properly.
>
> What is wrong? Example available here:
> http://www.elisanet.fi/matti.puputti/download/files/LaRouteNapoleon_en.htm
The files (e.g.
http://www.elisanet.fi/matti.puputti/download/files/LaRouteNapoleon.gdb)
are being served with the HTTP Content-Type header set to text/html.
In other words your server is telling browsers that these are HTML
files. Browsers are thus acting correctly based on what they've been
told.
You need to change the server configuration to serve a more appropriate
HTTP header with these files.
Steve
Navigation:
[Reply to this message]
|