On my Apache server I have stored several docx, xlsx pptx files.
Some client browsers think that theses are regular zip files and change the file extension when downloading. How do I make it not do that anymore.
(Using Ubuntu server)
|
up vote
6
down vote
favorite
|
|||
|
|
|
up vote
15
down vote
|
The files are actually ZIPs of XML documents. Add this to your .htaccess in Apache
|
||||||
|
|
up vote
1
down vote
|
The server doesn't have proper mime types set up for the new ms file types add the following to the /etc/mime.types file and restart apache and the problem should be fixed.
http://www.webdeveloper.com/forum/showthread.php?t=162526 has information about this problem |
||
|
|
up vote
0
down vote
|
Sounds like your web server is looking at the magic numbers inside these files and seeing that they ARE zip files. Have a look at: http://www.webdeveloper.com/forum/showthread.php?t=162526 |
||
|
|
|
up vote
0
down vote
|
Installed Apache 2.2.14 on Win XP with "apache_2.2.14-win32-x86-no_ssl.msi" and these are already included in ..\Apache\conf\mime.types - BUT - I am getting the same error - dialog box opens and the name is the calling file (index.php) - otherwise this download script has been working okay on my *nix hosted sever. |
||
|
|