Mental Jetsam

By Peter Finch

  •  

    February 2009
    M T W T F S S
    « Jan   Mar »
     1
    2345678
    9101112131415
    16171819202122
    232425262728  
  • My del.icio.us links

  • Flickr Photos

    S5001187

    S5001169

    S5001136

    More Photos
  • Wordpress Stuff

Internet Explorer does not open application/rtf mimetype

Posted by pcfinch on February 5, 2009

Unknown File Type Dialog

Unknown File Type Dialog

I had an odd problem lately where Internet Explorer (IE 7 & 8 ) stopped opening RTF documents served up by our website. The RTF files were served up by a CGI, so they did not have a “rtf” extension on the URL. IE would present a dialog saying that it did not know what the file type was “Unknown File Type”. All the other browsers (Firefox, Safari, etc) worked fine.

On further investigation I found the server was responding with a mime-type of “application/rtf” and it seems IE no longer knows what this is and expects a mime-type of “application/msword”. I found 2 solutions.

  1. The best solution, if you control the server, is to change the mime-type of the documents to “application/msword” ().
  2. If you can not change the server, then try adding the following registry entry to define the “application/rtf” mime-type

    [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/rtf]
    "Extension"=".rtf"

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>