For detecting MIME-types, use the aptly named "mimetype" command. It has a number of options for formatting the output, it even has an option for backward compatibility to "file". But most of all, it accepts input not only as file, but also via stdin/pipe, so you can avoid temporary files when processing streams.
MS Excel has the following observed MIME types: application/vnd. ms-excel (official) application/msexcel.
Office 2007 MIME Types for IIS
.docm
, application/vnd.ms-word.document.macroEnabled.12.docx
, application/vnd.openxmlformats-officedocument.wordprocessingml.document.dotm
, application/vnd.ms-word.template.macroEnabled.12.dotx
, application/vnd.openxmlformats-officedocument.wordprocessingml.template.potm
, application/vnd.ms-powerpoint.template.macroEnabled.12.potx
, application/vnd.openxmlformats-officedocument.presentationml.template.ppam
, application/vnd.ms-powerpoint.addin.macroEnabled.12.ppsm
, application/vnd.ms-powerpoint.slideshow.macroEnabled.12.ppsx
, application/vnd.openxmlformats-officedocument.presentationml.slideshow.pptm
, application/vnd.ms-powerpoint.presentation.macroEnabled.12.pptx
, application/vnd.openxmlformats-officedocument.presentationml.presentation.xlam
, application/vnd.ms-excel.addin.macroEnabled.12.xlsb
, application/vnd.ms-excel.sheet.binary.macroEnabled.12.xlsm
, application/vnd.ms-excel.sheet.macroEnabled.12.xlsx
, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xltm
, application/vnd.ms-excel.template.macroEnabled.12.xltx
, application/vnd.openxmlformats-officedocument.spreadsheetml.templateIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With