cotonti.com : MS Office Mimetypes https://www.cotonti.com Последние сообщения в теме Cotonti en Sun, 02 Nov 2025 17:36:50 -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