`
小杨学JAVA
  • 浏览: 900569 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Register the 2007 Office system file format MIME types on servers

 
阅读更多

Updated: 2008-07-23

For servers to recognize the new file formats, you will need to register the Multipurpose Internet Mail Extensions (MIME) types for each new file type. If the MIME types are not registered, servers will detect the new file formats as archives of compressed files. MIME types are automatically registered with Windows Server 2003 Service Pack 2 (SP2) or later versions.

By default, Internet Information Services (IIS) 7.0 includes these new MIME types. For servers that run Windows Server 2003 and Internet Information Services (IIS) 6.0, you can add the Open XML types in IIS Manager. For more information, see Configure MIME Types (IIS 6.0) (http://go.microsoft.com/fwlink/?LinkId=158193).

For servers that are not Windows-based, you have to register the MIME types manually. Refer to the product documentation for your server or refer to the links at the end of this article for more information about registering MIME types.

The following table shows the extensions you will need to register, their file type, and their MIME type.

 

 

 

File extension File type MIME type

.docx

Microsoft Office Word 2007 document

application/vnd.openxmlformats-officedocument.wordprocessingml.document

.docm

Office Word 2007 macro-enabled document

application/vnd.ms-word.document.macroEnabled.12

.dotx

Office Word 2007 template

application/vnd.openxmlformats-officedocument.wordprocessingml.template

.dotm

Office Word 2007 macro-enabled document template

application/vnd.ms-word.template.macroEnabled.12

.xlsx

Microsoft Office Excel 2007 workbook

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

.xlsm

Office Excel 2007 macro-enabled workbook

application/vnd.ms-excel.sheet.macroEnabled.12

.xltx

Office Excel 2007 template

application/vnd.openxmlformats-officedocument.spreadsheetml.template

.xltm

Office Excel 2007 macro-enabled workbook template

application/vnd.ms-excel.template.macroEnabled.12

.xlsb

Office Excel 2007 binary workbook

application/vnd.ms-excel.sheet.binary.macroEnabled.12

.xlam

Office Excel 2007 add-in

application/vnd.ms-excel.addin.macroEnabled.12

.pptx

Microsoft Office PowerPoint 2007 presentation

application/vnd.openxmlformats-officedocument.presentationml.presentation

.pptm

Office PowerPoint 2007 macro-enabled presentation

application/vnd.ms-powerpoint.presentation.macroEnabled.12

.ppsx

Office PowerPoint 2007 slide show

application/vnd.openxmlformats-officedocument.presentationml.slideshow

.ppsm

Office PowerPoint 2007 macro-enabled slide show

application/vnd.ms-powerpoint.slideshow.macroEnabled.12

.potx

Office PowerPoint 2007 template

application/vnd.openxmlformats-officedocument.presentationml.template

.potm

Office PowerPoint 2007 macro-enabled presentation template

application/vnd.ms-powerpoint.template.macroEnabled.12

.ppam

Office PowerPoint 2007 add-in

application/vnd.ms-powerpoint.addin.macroEnabled.12

.sldx

Office PowerPoint 2007 slide

application/vnd.openxmlformats-officedocument.presentationml.slide

.sldm

Office PowerPoint 2007 macro-enabled slide

application/vnd.ms-powerpoint.slide.macroEnabled.12

.one

Microsoft Office OneNote 2007 section

application/msonenote

.onetoc2

Office OneNote 2007 TOC

application/msonenote

.onetmp

Office OneNote 2007 temporary file

application/msonenote

.onepkg

Office OneNote 2007 package

application/msonenote

.thmx

2007 Office system release theme

application/vnd.ms-officetheme

 

 

 

The following are the mime types to be used for MS Office 2010 document file formats.

 

.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
.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
.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
.xps:  application/vnd.ms-xpsdocument
分享到:
评论

相关推荐

    mime-types下载

    `mime-types`库就是这样的一个工具,它为Ruby语言提供了广泛支持,允许程序识别并操作各种MIME类型。 `mime-types`库主要功能包括: 1. **MIME类型识别**:它能够根据文件扩展名或文件内容来识别其对应的MIME类型...

    MIME类型,mime-types

    MIME(Multipurpose Internet Mail Extensions)类型是一种标准,用于定义在网络上传输的数据类型。这个标准在互联网上广泛使用,不仅限于电子邮件,还涉及到HTTP协议、文件上传、Web应用程序等多个领域。MIME类型是...

    MimeTypes:通过mime-db生成的从文件名扩展名到MIMEmedia类型的简单查找,该查找又从IANA,Apache和nginx的MIME类型编译而来

    MimeTypes 从生成的从文件名/扩展名到MIME / media类型的简单查找,反之亦然,该查找又由IANA,... TryGetMimeType ( " awesome-file.json " , out var mimeType )){ // mimeType == "application/json"}MimeTypes . Ge

    前端开源库-file-mime

    前端开源库-file-mime文件mime,基本mime类型映射模块。

    mime-types.xml

    文件的mimeTypes

    MIME-Types-1.32.tar.gz

    标题"MIME-Types-1.32.tar.gz"所指的是一个包含了MIME类型定义的软件包,版本为1.32,它被压缩成了一种常见的Linux文件格式——tar.gz。这种格式通常用于在Unix/Linux环境中打包和压缩多个文件,便于传输和存储。...

    获取文件的mime typePHP类库.zip

    class MimeTypes {  public static $mime_types = array (  'apk' => 'application/vnd.android.package-archive',  '3gp' => 'video/3gpp',  'ai' => 'application/postscript',  'aif' =>...

    The Complete List of MIME Types(比较完整的MIME类型一览表)

    2. **注册表配置**:在Windows中,MIME类型信息存储在注册表中,如`HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content Type`,用户可以在这里自定义文件类型关联。 3. **应用程序配置**:用户可以设置特定...

    mime-types-cr:Crystal的MIME类型

    mime-types库提供了有关MIME内容类型定义的信息的库和注册表。 它可用于确定MIME类型的已定义文件名扩展名,或用于使用文件名扩展名查找可能的MIME类型定义。 关于MIME媒体类型 MIME内容类型用于与MIME兼容的通信中...

    mime-types:Java库可检测文件的MIME类型

    用法 import org.overviewproject.mime_types.MimeTypeDetector// ...File file = new File ( " foo.txt " );MimeTypeDetector detector = new MimeTypeDetector ();String mimeType = detector . ...

    mime-types:最终的javascript content-type实用程序

    而不是天真地返回第一个可用类型, mime-types只返回false ,所以var type = mime.lookup('unrecognized') || 'application/octet-stream' var type = mime.lookup('unrecognized') || 'application/octet-stream' ...

    boa库,cgi库及mimi.types

    `mimetypes.types_map`是Python标准库中的一个字典,用于映射文件扩展名到其对应的MIME类型。在Web服务器中,MIME类型用来标识资源的类型,如文本、图像、音频或视频等。 boa在处理静态文件时,会根据文件的扩展名...

    DigitalAssetsUserGuide.pdf

    For more information, see the MIME Types section of the System Setup / Super User Guide. l Images are assets, usually with a MIME type of image/*, and can be converted during export from STEP. ...

    MimeType文件校验demo

    String mimeType = mimeTypes.getContentType("path_to_your_file"); ``` 3. 引入外部jar包,如Apache Tika: Apache Tika是一个强大的库,能够识别大量的文件类型,包括图片、音频、视频等。如果内置的Java方法...

    ASP.NET Web API File Upload and Multipart MIME.rar

    在这个主题中,"ASP.NET Web API File Upload and Multipart MIME.rar" 提到的是关于在ASP.NET Web API中处理文件上传以及如何利用MIME多部分格式来实现这一功能。 1. **MIME多部分格式**: MIME(Multipurpose ...

    perl-MIME-Types-2.170.0

    MIME Types MIME 类型 MIME (Multipurpose Internet Mail Extensions) is an Internet standard for describes message content types. MIME ( 多用途的网际邮件扩充协议)是用于描述信息内容类型的国际标准。 MIME...

    计算机网络第六版答案

    20. End system A breaks the large file into chunks. It adds header to each chunk, thereby generating multiple packets from the file. The header in each packet includes the IP address of the ...

    The_Gerber_File_Format_specification.pdf

    标题《The_Gerber_File_Format_specification.pdf》中所指的是《Gerber 文件格式规范》,此规范由Ucamco公司开发,文档版本为2019.06。Gerber格式是用于描述印刷电路板(PCB)的光绘文件标准格式,广泛应用于电子制造...

    MIME 参考手册

    RFC-2045 MIME Part 1: Format of Internet Message Bodies RFC-2046 MIME Part 2: Media Types RFC-2047 MIME Part 3: Header Extensions for Non-ASCII Text RFC-2048 MIME Part 4: Registration Procedures ...

    httpmime jar包

    File file = new File("path_to_your_file"); builder.addBinaryBody("file", file, ContentType.DEFAULT_BINARY, file.getName()); // 构建并获取HttpEntity HttpEntity entity = builder.build(); // 使用...

Global site tag (gtag.js) - Google Analytics