Posted by Anuraj on Monday, May 5, 2014 Reading time :1 minute
While working with the ASP.Net MVC project, one of my QA team member reported a strange issue, while uploading a file, Internet Explorer 9, showing a download file dialog like this.
And the controller action is similar like this.
This code is working fine in other browsers like Chrome, Firefox, and later versions of Internet Explorer(I tried with IE 11).
Later I found the solution, it was due to content type handling problem with Internet Explorer. You can resolve it by using the other overloads available for JsonResult class, in which you can specify the content type. And here is the modified version of the action method.
Happy Programming :)
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.