Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remember last download location when calling chrome.downloads.download? (Extension Developer)

The default behavior for chrome.downloads.download is to download to the default download folder. It doesn't remember it if you change the folder. Can we save the download-to location for the next call-out?

References: https://developer.chrome.com/extensions/downloads

like image 535
Aero Wang Avatar asked Mar 29 '14 04:03

Aero Wang


1 Answers

It's concerning that Chrome actually doesn't provide the ability for an extension to get the last download path. Some say, it's due to security concern and others say, there is no significant need to have the API available to users.

You also cannot store the download path in your extension because Chrome doesn't let you get the selected download folder. I hope Google provides us with the either of these features later.

like image 141
James Wayne Avatar answered Nov 11 '22 23:11

James Wayne