I am writing a Chrome Extension to extract images in a web page and store them into local disk. Now I have got the URLs of all the images, how can I store them into local disk?
Asked
Active
Viewed 1,868 times
2 Answers
0
The link to the post on html5rocks is a good one - BUT in your case I guess you want to be able to save to the local file system and not the location that morden browser let you write to (btw, it's not virtual filesystem but a location on the disk).
You cannot save directly to any location on the local file system (security) - However, if you need to save images.. use this little hack: you can open them in a new tab (e.g. add to their link target="_blank") and in this case Chrome will save them to the default location (e.g. ~userHome/Downloads on mac)

Ido Green
- 2,795
- 1
- 17
- 26