Reply to Re: File downloading from HTML page

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация