New issue
Advanced search Search tips

Issue 823841 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 822542
Owner: ----
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

In v65, cannot download multiple files. When try download multiple files, it only download the last one.

Reported by ken.z...@capsovision.com, Mar 20 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36

Steps to reproduce the problem:
1. There is button in the front-end to download multiple files, the download function looks like this

function downloadUrls(urls) {
            urls.forEach(function (url) {
                if (url != null) {
                    var link = document.createElement('a');
                    document.body.appendChild(link);
                    link.href = url;
                    link.download = '';
                    //link.setAttribute('download', fileName);
                    link.dispatchEvent(new MouseEvent('click'));
                }
            })
The param "urls" is an array of file links.
2. After click the button, only the last file link in the "urls" array get downloaded instead of all the links in the array.
3. Did clicked "Allow" when "Allow this site to download multiple files" dialog pops out in previous version of Chrome(64 and before), can still see the site is in Chrome settings -> Content settings -> Automatic downloads -> Allow list, tried to remove and re-add it into the allow list, and toggle the "Ask when a site tries to download files automatically after the first file (recommended)" option, nothing works. 

What is the expected behavior?
Multiple files start downloading simultaneously.

What went wrong?
Only one file start downloading and gets downloaded.

Did this work before? Yes 64

Chrome version: 65.0.3325.162  Channel: stable
OS Version: 10.0
Flash Version: 

This issue only happens in the latest Chrome 65, I tried on all my windows computers. Before updates, this works as expected. After updates to 65, all have the same issue here.
 

Comment 1 by woxxom@gmail.com, Mar 20 2018

Duplicate of  issue 822542 , apparently.
Thanks for let me know there is an existing same issue. So sad they made the change without be consistent with the setting and features in the browser in previous versions, and this sudden change is making a huge inconvenience for our web app which relies on this feature. 
Mergedinto: 822542
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment