I am trying to download multiple files simultaneously by creating downloadable links pointing to blobs and clicking on the links. I am trying to do something similar to the following code.
- Code: Select all
for (let i = 0; i < 10; i++) {
let blobFile = new Blob(["file"+i])
var link = document.createElement('a');
link.href = URL.createObjectURL(blobFile)
link.download = 'Download.txt';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
When i try this in chrome, chrome is showing 10 separate save as dialogs and is downloading multiple files.
When i try the same in CEF (using CEF client app), it is only downloading one file. (shows only one save as dialogs).
Do we need to do any additional handling for supporting download of multiple files? Please let me know if i'm missing something here.
I am using 88.0.4324.182 version of CEF.
Thanks in Advance.