How to force Chrome to NOT open SaveAs Dialog when downloading a URL?

后端 未结 2 1283
一整个雨季
一整个雨季 2021-02-14 10:40

Chrome Build: the newest, 33+

A Chrome Extension extracts certain urls from currently viewed site and then downloads a subset of them (quite often hundreds of files).

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-14 11:21

    It is impossible when "Ask where to save each file before downloading" Enabled (as of 70.0.3538.77). The corresponding Chromium bug is:

    Bug 417112: chrome.downloads.download ignore saveAs

    Moreover setting filename in chrome.downloads.downloads() also doesn't work.

    Bug 758094: Extension can not rename downloaded file

提交回复
热议问题