It was recently brought to my attention that our web server was prompting users to download Office 2007 files as a zip file, but only in IE. (Clicking on the file in Firefox opened everything correctly, go figure.) At first I didn’t think it was the MIME types since things seemed to work in FF. After digging into my mime.types file I noticed that we had never added anything Office 2007, so off to Google I went.
The first place I went was Vladville and tried the shortcut method that he uses. It only requires one line to add.
application/vnd.openxmlformats docx pptx xlsx
Restarted Apache and much to my demise it didn’t work. So, more digging and I found on a MSDN blog to list each one separately. I did this even though it is a bit more of a pain than one line, but this way worked for me.
todd
As he states: for linux adding :
application/vnd.openxmlformats docx pptx xlsx
to /etc/mime.types must do (It did work for me)
For windows
AddType application/vnd.openxmlformats .docx .pptx .xlsx
(didn’t try this yet)