
For newer browsers you can just call msSaveBlob with the blob, but on older ones like IE you have to work with a little trick. Therefore you have to get a blob from the API, transform that into a file and send it to the browser.

Related Posts: Node. In this tutorial, I will show you how to build Node.js Express Rest API to download CSV file from a table in MySQL Database using json2csv.

When working with sessions, you can just open a link in a new tab and as long as it's on the same domain you can check the session on the new tab and just return the file. A CSV (comma-separated values) file is a plain text file that contains data which format is described in RFC4180. The user can then click the link, and they will be presented with the standard save dialog from their web. Provide a link which the user can click to tell the browser to download the Blob object from the URL as a file. One of the examples is downloading a file through an API. The steps are as follows: Create a file using the JavaScript Blob object to represent the file. When working with JWT a few things get a little bit trickier.
