Page 1 of 1

[solved] RAR files download

Posted: Wed Aug 08, 2007 9:40 am
by hlloyge
Hello everyone!

I am using CMSMS for download portal here at work to ease the access to drivers and software. So far I've been using ZIP archives without problems. When I tried RAR archive, IE7 downloaded it right, but Firefox showed it inside browser as if it were plain text.

I am sorry for beeing n00b, but where do I correct this? I have full shell access to server. It is CentOS 5 distribution.

Re: RAR files download

Posted: Wed Aug 08, 2007 11:04 am
by ironblaze94
just a stab in the the dark but maybe it isn't possible to download RAR files ?

alot of sites that have compressed files only use ZIP and TAR formats, for examples Apache.org, Cmsmadesimple.org and Php.net

???

Re: RAR files download

Posted: Wed Aug 08, 2007 12:00 pm
by hlloyge
I will reply to myself here, I found a solution:

It is needed to add entry to /etc/mime.types, two lines:

application/rar rar
application/x-rar-compressed rar

That's it.