0

I got an object with image urls in it,and want to save them into the file directory user want. Like "save as " function ,pop a window to choose the directory in browser. And I'm so confused now .

Andrew Fan
  • 274
  • 2
  • 6

2 Answers2

0

use filesaver.js it's most effective way.

HirenMangukiya
  • 645
  • 3
  • 13
  • 30
0

In JavaScript you cannot directly save a file. You can cause the browser to prompt the user to save the file locally. You can refer this example.

http://www.muazkhan.com/2012/10/save-files-on-disk-using-javascript-or.html

Nitin Sinha
  • 179
  • 3