Hi
Does anyone know where to find a list of mime types supported by IE8? Or have I taken a serious hit to the head recently? Consider
<?php
header('content-type: text/plain');
echo 'This is just text';
exit;
?>
Expected result: The text shows up in your browser window.
IE8 result: Dialogue with "open", "save", "cancel" buttons 🙁
Why do I care?
Well, I ran into a problem with ajax file upload through transparent XHR emulation by use of dynamically created iframe, courtesy of YUI. The code was written pre release of IE8, and now I realized that it does not work with IE8. So, after an upgrade from YUI 2.7 to 3.0 (since it could have been the reason for my issue), the problem remains and I discovered the above fact. text/plain is not recognized by IE8.
One solution would of course be to set the header as text/html, but what I really am sending is a json-encoded response object. I don't want to have it interpreted as html. Also, wouldn't I have to actually wrap the response in doctype, html and body tags? Or could I forgo any markup without unexpected consequences in browser X?
application/json? Same result as with text/plain, except it also fails in FF 3.5.
Any suggestions on acceptable solutions to the problem would be welcome.