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 :)
Did you like this article? Share it with your friends