Jun 23

MS Word 2007 .DOCX MIME TYPE

Tag: Tech StuffMatthew Moeller @ 2:37 pm

Ever searched around looking for the mime-type for the newer Microsoft Word .docx file type?  Search no more. It comes in handy for web development when you have an uploader app in PHP or ASP and need to determine the file type. Tested in PHP and works perfect. Hope this saves someone some time searching.

.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document

.doc (old school word)
application/msword

8 Responses to “MS Word 2007 .DOCX MIME TYPE”

  1. Aric says:

    Amen brother, amen.

  2. Hemanth says:

    Thanks Matthew. That helps.

  3. Simon says:

    Alleluila! Thanks dude!

  4. Most Grateful says:

    This saved me from a huge crisis as students were uploading and I had not controlled for docx in my php app. I plunked this in and you saved my day!

    Many, many thanks,

    Henry

  5. Arturo says:

    Very usefull man, I needed for an ASP.NET proyect at work.

    Thx

  6. IsabelleGusse says:

    THX DUDE !

  7. Fedja says:

    Tnx man…
    Here are more MIME type for Office 2007
    XLSX application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    PPTX application/vnd.openxmlformats-officedocument.presentationml.presentation

  8. Tommy says:

    Hi!
    I used a mail sender script with your mime type, it worked flawlessly.
    Thanks mate.

Leave a Reply