Forums / Cotonti / Support / MS Office Mimetypes

mimetypes

ez
#1 2010-11-06 23:19
Does anybody have all the correct data for me regarding the MS office mimetypes.
including the MS office 2007/2010 ones

For: data\mimetype.php

Hope to hear from somebody.. :)
==- I say: Keep it EZ -==
GHengeveld
#2 2010-11-07 00:22
I don't have the mimetypes, but I do have another hint for MS office 2007 types.

Add this to your .htaccess file:
AddType application/vnd.openxmlformats docx pptx xlsx
It will make office 2007 files open/download correctly.

In adminpanel you can disable mimetype check or allow unknown mimetypes so office files will be accepted as normal.

Added 5 minutes later:

I had a closer look at it, and came up with these rules. I didn't test them, but they may work.
$mime_type['docx'][]	= array('application/vnd.openxmlformats', '[Content_Types].xml', '0', '31', '19', '0');
$mime_type['xlsx'][]	= array('application/vnd.openxmlformats', '[Content_Types].xml', '0', '31', '19', '0');
$mime_type['pptx'][]	= array('application/vnd.openxmlformats', '[Content_Types].xml', '0', '31', '19', '0');
This post was edited by Koradhil (2010-11-07 00:34, 13 years ago)
ez
#3 2010-11-07 00:58
Thanks Gert,

I was looking for the binary checks... of these MS office types (like a lot of files have).
I still hope that somebody has a list of those, otherwise I have to figure them out...

gr,

ez
==- I say: Keep it EZ -==