none
Where are content types defined?

    Question

  • Hi,

    In the [Content_Types].xml file, I see the following contents:

    <Default Extension="wmf" ContentType="image/x-wmf"/>

    I just wonder where can I find a list of all possible ContentType strings, such as "image/x-wmf", since I may add other file types, such as .GIF, .PSD, .PNG, etc. and need to know the standard ContentType for these file types as well. 

    Thanks

    Friday, January 11, 2019 1:03 AM

All replies

  • Hi,

    Thank you for posting this question. One of our engineers will review and follow-up soon.

    Thanks,

    Edgar

    Friday, January 11, 2019 4:43 AM
    Moderator
  • Hi tempc,

    The content types for parts are not limited to, but can include the examples given for each part in ISO/IEC 29500-1 15.2 "Part Summary".

    The format is defined in ISO/IEC 29500-2 9.1.2 Content Types which says: 

    "Content types for package parts shall fit the definition and syntax for media types as specified in RFC 2616, §3.7."

    I hope this helps.

    Best regards,
    Tom Jebo
    Sr Escalation Engineer
    Microsoft Open Specifications


    Friday, January 11, 2019 8:24 PM
    Moderator
  • Hi tempc,

    The content types for parts are not limited to, but can include the examples given for each part in ISO/IEC 29500-1 15.2 "Part Summary".

    The format is defined in ISO/IEC 29500-2 9.1.2 Content Types which says: 

    "Content types for package parts shall fit the definition and syntax for media types as specified in RFC 2616, §3.7."

    I hope this helps.

    Best regards,
    Tom Jebo
    Sr Escalation Engineer
    Microsoft Open Specifications


    Hi, Tom,

    Thank you. After downloading RFC 2616, go to $3.7, I find that is a description of the Internet Media Types, not a list of the types. However, with your great help, I finally find the official document on a list of the types, at: 

    https://www.iana.org/assignments/media-types/media-types.xhtml

    However, I find what the Office defines is different from the above type list, for example, 

    For wmf file extension, the content type should be "image/wmf" based on https://www.iana.org/assignments/media-types/media-types.xhtml , but it is actually "image/x-wmf" in pptx generated by PowerPoint. And the document https://www.iana.org/assignments/media-types/media-types.xhtml said "x-wmf - DEPRECATED in favor of image/wmf"

    Tuesday, January 15, 2019 3:05 AM
  • Hi tempc, 

    As I mentioned, the ISO 29500 standard includes only examples of the types that may be used in Office Open XML packages. 

    One thing you need to reference in addition to the standard when dealing with Microsoft Office generated files is the [MS-OI29500] specification where you'll find implementation notes. Specifically, if you go to 2.1.32 in that document: 

    https://msdn.microsoft.com/en-us/library/ff534080(v=office.12).aspx

    You'll notice that it calls out that specific content type: 

    "c. The standard does not list a reference to the Windows Metafile Format Specification.

         Office also supports the image/wmf image type [MS-WMF]."

    So PowerPoint will accept the current image/wmf type as well.

    Hope this helps, 

    Tom

    Tuesday, January 15, 2019 11:02 PM
    Moderator