Reply to Re: File downloading from HTML page

Your name:

Reply:


Posted by Andy Dingley on 04/10/06 12:53

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).

Your server is returning a HTTP content-type of text/html This is the
default (for many servers) for anything that isn't specifically
recognised. The browser then treats this as text content and shows it
to you.

As you're running Apache, this is easy to fix. Web search a tutorial on
".htaccess" and it should explain how. You can do this yourself,
without needing to bother the server admins (for almost all sensible
Apache sites). Google also (AFAIR) have some specific notes on the best
way to serve up these KMZ documents.

[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

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