How to trigger file download from post request
The download() function is used to trigger a file download from JavaScript. Blob, or Typed Array of data, or via a dataURL representing the file's data as base64 or in the same manner as a server using a Content-Disposition HTTP header.