Microsoft Office 2007 新しいファイル形式のMIMEタイプ
ファイルフォーマットが完全に新しくなり、ZIP圧縮されたXMLデータとなった。新しいフォーマットのファイルの拡張子は、
xlsx, docx, pptx 等となり、従来のものと区別される。
http://office.microsoft.com/ja-jp/help/HA100069351041.aspx
新しいファイル名拡張子および Open XML 形式入門
現状、IEでこれらのファイルをHTTPでダウンロードし、ファイルに保存する場合は注意が必要。保存ダイアログでデフォルトの拡張子がzipになる場合がある。
今のところ、HTTPサーバー側で新しい拡張子に対するMIMEタイプが設定されていないケースが多い。ほとんどの場合、拡張子に対するMIMEタイプが未指定の場合、デフォルトはtext/plainやtext/html等になっている。この場合IEはどうやら、ここでも親切に、コンテンツのデータを解析してZIPアーカイブと判断し、デフォルトの拡張子をzipにしてしまうらしい。
とすれば、HTTPサーバー上でそれぞれの拡張子に対応する、適切なMIMEタイプを設定すれば問題は解決するかもしれない、と思うのが人情である。
しかし、いざ指定しようとすると、「適切なMIMEタイプ」ってやつがよくわからない。しばし検索してみたところ、下記の情報に頼ることにした。
ApacheのAddTypeにすると下記のようになる(上記サイトの全部はやっていないが)。conf/httpd.confあたりで指定する。手元の環境Windows XP SP2、Office Personal 2003、PowerPointなし、互換パックなし、の環境で試したところではOK(設定前は保存ダイアログのデフォルト拡張子はzip)。
# Microsoft Office Word 2007 document
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx# Office Word 2007 macro-enabled document
AddType application/vnd.ms-word.document.macroEnabled.12 .docm# Office Word 2007 template
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template .dotx# Office Word 2007 macro-enabled document template
AddType application/vnd.ms-word.template.macroEnabled.12 .dotm# Microsoft Office Excel 2007 workbook
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx# Office Excel 2007 macro-enabled workbook
AddType application/vnd.ms-excel.sheet.macroEnabled.12 .xlsm# Office Excel 2007 template
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template .xltx# Office Excel 2007 macro-enabled workbook template
AddType application/vnd.ms-excel.template.macroEnabled.12 .xltm# Office Excel 2007 binary workbook
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 .xlsb# Office Excel 2007 add-in
AddType application/vnd.ms-excel.addin.macroEnabled.12 .xlam# Microsoft Office PowerPoint 2007 presentation
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx# Office PowerPoint 2007 slide show
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow .ppsx# Office PowerPoint 2007 macro-enabled slide show
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 .ppsm# Office PowerPoint 2007 template
AddType application/vnd.openxmlformats-officedocument.presentationml.template .potx# Office PowerPoint 2007 macro-enabled presentation template
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 .potm# Office PowerPoint 2007 add-in
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 .ppam# Office PowerPoint 2007 slide
AddType application/vnd.openxmlformats-officedocument.presentationml.slide .sldx# Office PowerPoint 2007 macro-enabled slide
AddType application/vnd.ms-powerpoint.slide.macroEnabled.12 .sldm