Thursday, March 2, 2017

Download excel (or other format) file from web api controller method

Since javascript does not recognize downloadable file formats, setting mere content-type header is not enough when we want to provide a facility to download a file from web api controller method.

This discussion provides a workaround for the issue:

http://stackoverflow.com/questions/14831860/download-excel-file-from-page-via-webapi-call

No comments:

SSL Error - The connection for this site is not secure

 After cloning a git repo of dot net framework website and trying to run it all I could see was this error Turns out the fix was to simply e...