You are here: Re: .zip files and .rar files? « HTML « IT news, forums, messages
Re: .zip files and .rar files?

Posted by Jonathan N. Little on 12/04/06 15:03

Andy Dingley wrote:
> fj wrote:
>> I also tried to link to .exe files but it will not download those files
>> either. I've downloaded .exe and .rar files from other sites. The .rar files
>> just show as garbled computer language (I think).
>
> Then it has linked to the file, but not managed to serve it correctly.
>
> As a guess (as a I don't know which site you're talking about) then the
> page linking to these files is correct. The server where these files
> are located is incorrect and badly configured.
>
> Many servers assume that all the files on them are either "HTML" or
> "plaintext", unless they're specific sorts of file (like JPG) that it
> knows about. The "type" of files can be guessed from the file extension
> in their name, but that's not how the web protocols work. Instead they
> have a particular header of "content-type" such as "text/plain",
> "text/html", "image/jpeg" or "application/octet-stream".
> "application/octet-stream" means "We have no idea what this is, just
> treat it as raw data and store it, but don't try to view it, run it or
> do anything clever with it"
>

Aside of adding the mime type via an .htaccess file could he not simply
add the TYPE attribute to his link?

<a href="someRarFile.rar" type="application/x-rar-compressed">The RAR
File</a>


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this 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

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