IE prompts to open or save json result from server

how can i convince ie to simply display application/json rather than offer to download it?
how to disable open/save prompt in ie11
json formatter internet explorer
open pdf in ie 11 without prompt
display json data on browser
do you want to open or save this file
veritae_verification_flow json
json not displaying

Internet explorer in compatibility mode gets the data from the server in an ajax callback method, and pops-up a dialog if I want to save the data or open. How to get rid of that?

client says:

$.ajax({
        type:'POST',
        data: $("#UIdlgHolder > form").serialize(),
        url: $("#UIdlgHolder > form").attr("action"),
        success: function (data, textStatus, jqXHR) {
            {
                alert(data.message);
            }
}

server answers:

return new JsonResult { Data = new { result = false, message = "Yay!" } };

Sounds like this SO question may be relevant to you:

How can I convince IE to simply display Application json rather than offer to download

If not:

Have you tried setting the dataType expected in the ajax options? i.e. dataType: 'json'

Have you tried other content types such as 'application/json' or 'text/javascript'

Have you ever encountered this Open or Save Issue on Internet Explorer when your trying to return a JSON Result? Then your not alone, I had  I’ve been trying different suggestions by returning the result to contentType as “application/json; charset=UTF-8” and contentEncoding as “UTF-8”. Some even offered to return it as “text/plain” well that does not work as it will give me the JSON result on text displayed on my browser but don’t worry if you have a similar scenario then I have a solution for you.


Even though it's not supposedly the correct way, setting the content type to text/html made IE deal with this correctly for me:

return Json(result, "text/html");

Works in all the version that F12 tools gives you in IE9.

In IE11, if I try to upload a file to server using File Upload in File fieldtype (or Editor), the browser prompts me… Sadly, this is just another annoying quirk of using Internet Explorer. The simple solution is to run a small .reg file on your PC, to tell IE to automatically open .json files, rather than nag about whether to open/save it. I've put a copy of the file you'll need here: JSON mime type. You'll need to have Admin rights to run this.


On IE, my REST service that handles the upload responds with a 200 and IE asks whether I want open or save the response. Do I need to set  When uploading a file with Internet Explorer 9, the browser asks the user whether to open or save the JSON result. Consequently, the user gets a confusing dialog box and the indicators of the upload status never change away from "uploading" and the spinning throbber.


Have you tried to send your ajax request using POST method ? You could also try to set content type to 'text/x-json' while returning result from the server.

After much trail and error, I have gotten the file upload to work in IE 9. -ie-​prompts-to-open-or-save-json-result-which-comes-from-server. It works fine in all browsers except IE. IE tries to download the JSON as a file ! I have IE10 and testing it on IE7 to 10 by changing browser mode and document mode from the debugger. I am using asp.net mvc4, the file upload action have HttpPost attribute and i am returning json response using return Json(myObject); And here are my http


I changed the content-type to "text/html" instead of "application/json" server side before returning the response. Described it in a blog post, where other solutions have also been added:

http://blog.degree.no/2012/09/jquery-json-ie8ie9-treats-response-as-downloadable-file/

but Internet Explorer pops up a dialog asking me where to save the JSON response as a file. Here is an example of the JSON that the server  IE 9 - After file upload browser prompts to save or download the response from the server #137 Closed rmanalo623 opened this issue May 22, 2014 · 10 comments


We found at least 10 Websites Listing below when search with open a json file on Search Engine It is primarily used for transmitting data between a web application and a server. JSON files are IE prompts to open or save json result . Sadly, this is just another annoying quirk of using Internet Explorer. The simple solution is to run a small .reg file on your PC, to tell IE to automatically open .json files, rather than nag about whether to open/save it. I've put a copy of the file you'll need here: JSON mime type. You'll need to have Admin rights to run this.


To display this response using F12 in IE 10, select Network > Start Capturing. but Internet Explorer prompts you to open or save the response from the handler. private Content-Type application/json; charset=utf-8 Server Microsoft-IIS/8.0  I wanted to use Jquery to display message prompts when action fails (like edit, add, delete, etc..). I'm new to MVC and I added some JSON code to the controller and view. However, when JSON is called a download prompt appears.


Hi, This normally occures if you try to post a form in an IFrame and the result is JSON (mostly used in Ajax-fileuploads. The problem is (in the  jQuery UI Widgets › Forums › Editors › FileUpload › IE 11 asks to open or save JSON response Tagged: Angular 2 file upload , Angular file upload , content type , file input , File Upload , jquery file upload , jqxFileUpload , text/html , text/plain