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 .
Asked
Active
Viewed 1,919 times
2 Answers
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