0

I want to try and use file-saver but not sure if or where the file is being saved.

I tried this: Angular 2 download .CSV file click event with authentication but how do we set the location of the file being saved?

user11317802
  • 79
  • 11
  • ideally, location is taken by the browser's default location. – Aravind Jun 07 '19 at 19:58
  • Thanks @Aravind Would you happen to know where exactly in the default folder? When I go here: /Users/rstorm1/Library/Application Support/Google/Chrome/Default on a mac there are quite a bit of directories in there. Searching local storage, databases, blob_storage, etc. is not turning up anything. – user11317802 Jun 09 '19 at 13:48

1 Answers1

0

Found the problem, very silly mistake. I failed to place data in brackets like this:

let blob = new Blob([data], { type: "text/csv;charset=utf-8" });

After that, it saves the file automatically in downloads folder which is good enough.

user11317802
  • 79
  • 11