chrome.downloads.download ignores saveAs option and opens the dialog regardless

前端 未结 2 997
一生所求
一生所求 2021-01-20 00:53

I\'m trying to create an extension which downloads multiple files at once.

In order to accomplish that, I\'m using chrome downloads api, here is the code (with Angul

相关标签:
2条回答
  • 2021-01-20 01:23

    The answer provided by Jenna is an acceptable workaround, however, forcing users to change their preferences is not something I will take as an "Accepted solution". There is an issue filed for this bug on this thread.

    I guess the only possible way of having a correct fix is for the chrome team to stand up and fix this issue for us developers. I would recommend to put more pressure on the thread by adding a comment indicating why you need this to be fixed and how urgent it is. Also and most important, make sure you click the star to have the issues starred as they will pay more attention to it.

    0 讨论(0)
  • 2021-01-20 01:33

    You can instruct your user to set Chrome settings to have

    Ask where to save each file before downloading
    

    "Save As" turned on/off.

    https://lifehacker.com/make-chrome-ask-where-to-save-downloaded-files-by-chang-1790840372

    0 讨论(0)
提交回复
热议问题