Mental Jetsam

By Peter Finch

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"

Advertisements

One Response to “Internet Explorer does not open application/rtf mimetype”

  1. Anonymous said

    Thanks , helped a lot !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: