I have a GP service with an output parameter as type File -- a simple text file with a .json file extension on the end. In some Internet browsers (mostly Internet Explorer) it does not invoke the "Download this file?" option to the user and simply opens a new tab and displays the content of the file.
Is this an IIS/server config, something with the GP service itself or perhaps even at the client I can implement to alleviate this issue?
Thanks for any ideas, I'm out of them.
Solved! Go to Solution.
Is a link to the generated JSON file presented to users as an HTML anchor, similar to how download links are displayed in the JSAPI's Print Widget? If so you could add the download attribute to the anchor tag:
No, I just want to allow user to "SaveAs" in IE or download into downloads directory (Chrome). However, I don't believe download attribute is supported in IE.
In any case, it still just opened a new tab and displayed the content of the .json file that was in the response instead of downloading it.