MIME Types for Office 2007

See all posts Reply

MIME Types for Office 2007 new!
by Chris, 17 years, 3 months ago
The default files saved in Office 2007 are Open XML with the following extensions:
.docx for Word
.xlsx for exel
etc.

Is there a way to add these to approved MIME Types?Reply
Re: MIME Types for Office 2007 new!
by colin, 17 years, 3 months ago
You can add MIME types like this:
$handle->allowed =
    array('application/pdf','application/msword');

As for the new Office 2007 formats, you can find a list here.

I beliive that the following MIME type will work for all Office 2007 documents. Let me know if it works, and I will add it in the next release.
application/vnd.openxmlformats
Reply
Re: MIME Types for Office 2007 new!
by Chris, 17 years, 3 months ago
Thanks. I found I had to be more explicit. I had success when I added all of these.

"application/vnd.ms-word.document.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-word.template.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"application/vnd.ms-powerpoint.template.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.presentationml.template ",
"application/vnd.ms-powerpoint.addin.macroEnabled.12",
"application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.presentationml.slideshow",
"application/vnd.ms-powerpoint.presentation.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.ms-excel.addin.macroEnabled.12",
"application/vnd.ms-excel.sheet.binary.macroEnabled.12",
"application/vnd.ms-excel.sheet.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.ms-excel.template.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.spreadsheetml.template ",
Reply
Re: MIME Types for Office 2007 new!
by colin, 17 years, 3 months ago
Thank you for your feedback. I will be adding these in the next release.Reply