Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 09:11:26 AM

Pages: [1]   Go Down
  Print  
Author Topic: Error when downloading  (Read 255 times)
Korben
Space Explorer
***
Offline Offline

Posts: 9


WWW
« on: April 18, 2003, 11:13:44 AM »

Hello !

Is it possible that you correct the mime-type of this link ?
(http://www.open-files.com/korben/files/eNutile%200.4b%20Deutsch.rar)

Mozilla will display it as text in the browser window because the
mime-type is set to text/plain (should be application/octet-stream).

You can see the mime-type send from the server if you open this URL:
http://webtools.mozilla.org/web-sniffer/

and enter the file-link:

HTTP/1.1 200 OKCRLF
Date: Fri, 18 Apr 2003 17:02:04 GMTCRLF
Server: Apache/1.3.27 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.0
PHP/4.3.1 FrontPage/5.0.2.2510 mod_ssl/2.8.12 OpenSSL/0.9.6bCRLF
Last-Modified: Fri, 18 Apr 2003 14:41:11 GMTCRLF
ETag: "5f447f-4c430-3ea00e87"CRLF
Accept-Ranges: bytesCRLF
Content-Length: 312368CRLF
Connection: closeCRLF
Content-Type: text/plainCRLF
                ^^^^^^^^^^

I think you can correct this with a .htaccess because you run an apache server.
Could you put this in a .htaccess in the web-root directory:
AddType application/x-rar-compressed .rar

Thanks for all
K.
ps: if you have another solution, tell me Smile
Logged
stephan
Guest
« Reply #1 on: April 18, 2003, 05:42:26 PM »

Hi,

I have another solution.

You can login to your control panel. There is a section where you can add your own mime types.

It's easier than uploading a .htaccess file.
Logged
Korben
Space Explorer
***
Offline Offline

Posts: 9


WWW
« Reply #2 on: April 19, 2003, 01:23:17 AM »

Thanks a lot Smile
Logged
stephan
Guest
« Reply #3 on: April 19, 2003, 05:46:45 AM »

No problem. It's a useful feature.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: