1

How to add filename while using responseType: "blob". It should show like test.csv.

My Code:

var account = API.one("users/csvExport", checkboxesChecked).withHttpConfig({responseType: "blob"}).post().then((response) => {
        var url = (window.URL || window.webkitURL).createObjectURL(response);
        window.open(url,"_self");
    });
  } 
user6527
  • 55
  • 1
  • 12
  • Maybe dup: http://stackoverflow.com/questions/19327749/javascript-blob-filename-without-link – acrazing Dec 08 '16 at 15:06
  • Possible duplicate of [JavaScript blob filename without link](https://stackoverflow.com/questions/19327749/javascript-blob-filename-without-link) – wpedrak Jun 15 '17 at 20:24

0 Answers0