[solved] RAR files download

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
hlloyge
Forum Members
Forum Members
Posts: 11
Joined: Mon Apr 02, 2007 4:49 pm

[solved] RAR files download

Post 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.
Last edited by hlloyge on Wed Aug 08, 2007 12:01 pm, edited 1 time in total.
ironblaze94

Re: RAR files download

Post 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

???
hlloyge
Forum Members
Forum Members
Posts: 11
Joined: Mon Apr 02, 2007 4:49 pm

Re: RAR files download

Post 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.
Locked

Return to “CMSMS Core”