cotonti.com : MS Office Mimetypes https://www.cotonti.com Останні повідомлення в темі Cotonti en Wed, 18 Mar 2026 14:09:49 -0000 ez
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]]>
Нд, 07 Лис 2010 00:58:25 -0000
GHengeveld
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');
]]>
Нд, 07 Лис 2010 00:22:40 -0000
ez including the MS office 2007/2010 ones

For: data\mimetype.php

Hope to hear from somebody.. :)]]>
Сб, 06 Лис 2010 23:19:22 -0000