在服务器上注册 2007 Office system 文件格式 MIME 类型
更新时间: 2008年7月
应用到: Office Resource Kit
上一次修改主题: 2015-03-09
要使服务器能够识别新的文件格式,您需要注册每种新文件类型的多用途 Internet 邮件扩展 (MIME) 类型。如果不注册 MIME 类型,服务器会将新文件格式检测为压缩文件的存档。在 Windows Server 2003 Service Pack 2 (SP2) 或更高版本中,MIME 类型会自动注册。
默认情况下,Internet Information Services (IIS) 7.0 包括这些新的 MIME 类型。对于运行 Windows Server 2003 和 Internet Information Services (IIS) 6.0 的服务器,您可以在 IIS 管理器中添加 Open XML 类型。有关详细信息,请参阅配置 MIME 类型 (IIS 6.0)(该链接可能指向英文页面) (https://go.microsoft.com/fwlink/?linkid=158193\&clcid=0x804)(该链接可能指向英文页面)。
对于不是基于 Windows 的服务器,您必须手动注册 MIME 类型。有关注册 MIME 类型的详细信息,请参考服务器的产品文档或参考本文末尾的链接。
下表显示了您需要注册的扩展名、其文件类型及其 MIME 类型。
文件扩展名 | 文件类型 | MIME 类型 |
---|---|---|
.docx |
Microsoft Office Word 2007 文档 |
application/vnd.openxmlformats-officedocument.wordprocessingml.document |
.docm |
启用宏的 Office Word 2007 文档 |
application/vnd.ms-word.document.macroEnabled.12 |
.dotx |
Office Word 2007 模板 |
application/vnd.openxmlformats-officedocument.wordprocessingml.template |
.dotm |
启用宏的 Office Word 2007 文档模板 |
application/vnd.ms-word.template.macroEnabled.12 |
.xlsx |
Microsoft Office Excel 2007 工作簿 |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
.xlsm |
启用宏的 Office Excel 2007 工作簿 |
application/vnd.ms-excel.sheet.macroEnabled.12 |
.xltx |
Office Excel 2007 模板 |
application/vnd.openxmlformats-officedocument.spreadsheetml.template |
.xltm |
启用宏的 Office Excel 2007 工作簿模板 |
application/vnd.ms-excel.template.macroEnabled.12 |
.xlsb |
Office Excel 2007 二进制工作簿 |
application/vnd.ms-excel.sheet.binary.macroEnabled.12 |
.xlam |
Office Excel 2007 加载项 |
application/vnd.ms-excel.addin.macroEnabled.12 |
.pptx |
Microsoft Office PowerPoint 2007 演示文稿 |
application/vnd.openxmlformats-officedocument.presentationml.presentation |
.pptm |
启用宏的 Office PowerPoint 2007 演示文稿 |
application/vnd.ms-powerpoint.presentation.macroEnabled.12 |
.ppsx |
Office PowerPoint 2007 幻灯片放映 |
application/vnd.openxmlformats-officedocument.presentationml.slideshow |
.ppsm |
启用宏的 Office PowerPoint 2007 幻灯片放映 |
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 |
.potx |
Office PowerPoint 2007 模板 |
application/vnd.openxmlformats-officedocument.presentationml.template |
.potm |
启用宏的 Office PowerPoint 2007 演示文稿模板 |
application/vnd.ms-powerpoint.template.macroEnabled.12 |
.ppam |
Office PowerPoint 2007 加载项 |
application/vnd.ms-powerpoint.addin.macroEnabled.12 |
.sldx |
Office PowerPoint 2007 幻灯片 |
application/vnd.openxmlformats-officedocument.presentationml.slide |
.sldm |
启用宏的 Office PowerPoint 2007 幻灯片 |
application/vnd.ms-powerpoint.slide.macroEnabled.12 |
.one |
Microsoft Office OneNote 2007 分区 |
application/onenote |
.onetoc2 |
Office OneNote 2007 目录 |
application/onenote |
.onetmp |
Office OneNote 2007 临时文件 |
application/onenote |
.onepkg |
Office OneNote 2007 包 |
application/onenote |
.thmx |
2007 Office system 版本主题 |
application/vnd.ms-officetheme |
有关如何在不同的服务器上设置这些类型的详细信息,请参阅以下文章:
David Overton 博客上的如何使 Companyweb (Windows SharePoint Services v2) 与 Office 2007 一起工作(该链接可能指向英文页面) (https://go.microsoft.com/fwlink/?linkid=158120\&clcid=0x804)(该链接可能指向英文页面)
Vladimir Mazek 博客上的用于 Apache 的 Office 2007 MIME 类型(该链接可能指向英文页面) (https://go.microsoft.com/fwlink/?linkid=158121\&clcid=0x804)(该链接可能指向英文页面)
IIS 中 MimeMap 属性和 ScriptMaps 属性的默认设置描述 (https://go.microsoft.com/fwlink/?linkid=158122\&clcid=0x804)(包括用于其他文件扩展名的 MIME 类型)
使用 Office Open XML 格式创建文档主题(该链接可能指向英文页面) (https://go.microsoft.com/fwlink/?linkid=158124\&clcid=0x804)(该链接可能指向英文页面)