mimetypes
GHengeveld |
|
---|---|
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 xlsxIt 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'); |
|
Отредактировано: Koradhil (07.11.2010 00:34, 14 лет назад) |