Virtualizer - asking to download JSON file instead of showing contents
Hi,
Question : I have virtualize Rest API, working perfect with postman/chrome but ones try URI under IE 11, instead of showing JSON on screen asks me to OPEN or Download file.
If i click on OPEN, nothing happens.
Thanks,
Best Answer
-
I think this is browser behavior... see the following links.
https://github.com/sdelements/lets-chat/issues/300
https://answers.microsoft.com/en-us/ie/forum/ie11-windows_7/ie-explorer-does-not-open-json-files/7c649861-6f47-415e-b434-bad97669e57b
https://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/how-do-i-stop-json-file-download-dialog-boxes-from/a171e49e-0f97-4cfa-b5f2-2106278169a25
Answers
-
I am not sure I understand the question. It sounds like you are trying to call a resource on the Virtualize rest api? If that is the case what you are seeing sounds like a browser specific behavior
0 -
Hi, if IE won't display JSON you may want to try downloading the file and opening it with Wordpad or Notepad++.
0 -
Yes its rest API resource, JSON data. postman & Chrome are able to show JSON contents on screen while IE 11 gives option to download JSON file instead of opening in browser.
Thanks,
0 -
aparacha
what kind of mime type you setup in response?0 -
Ireneusz, its JSON .
Jakubiak, thanks for sharing link, answered my question.Thanks,
0 -
Great! One of the links had instructions that would modify the behavior of IE - were you able to get that to work?
1 -
There is no need to go that way for now, had to explain scenario to lead.
Thanks,0 -
For me, the same is happening in chrome. It automatically downloads a json file if i hit api in chrome browser. And works perfectly fine if i query it in postman.
Please suggest.
0 -
Netti_1302
it looks like Chrome bug, see :
Google support
or here--
Ireneusz Szmigiel
http://www.catb.org/esr/faqs/smart-questions.html0