physionet-build icon indicating copy to clipboard operation
physionet-build copied to clipboard

Adds option to download multiple files at once for published projects #1175

Open Lucas-Mc opened this issue 4 years ago • 5 comments

This change gives the user the option to download multiple files at once by using checkboxes next to the file name in the files panel. Currently, the user is required to manually go through each file and press the download button which is more tedious and, on my current setup, the files open when they are finished downloading which interrupts me trying to download multiple files at once. Further, the download button is far from the file name and sometimes it's difficult to tell if I'm downloading the correct file.

The user simply checks off which files they wish to download and then clicks the "Download Selected Items" button which automatically opens up the download URL for each of the selected files.

Fixes #1175.

Lucas-Mc avatar Mar 22 '21 12:03 Lucas-Mc

It would be helpful if there was a 'select all' option under the files section of a Physionet project.

It would still be helpful to have the "select all" if we are going to approve this PR since the issue it fix started with that statement.

elfeto avatar Mar 26 '21 17:03 elfeto

@Lucas-Mc this update is much welcomed! When clicking Download All Items it was only downloading the first file for me. Also, is it possible to allow downloading individual folders (and their included content)?

briangow avatar Apr 26 '21 20:04 briangow

Hey @briangow, downloading individual folders and its nested contents may be much harder since an AJAX request happens in the background to load a folder's contents when it's clicked on so let's keep that as a feature request.

Also, as mentioned in our conversation offline, it appears like Chrome blocks multiple downloads at first due to security risks but after the user allows it for the hostname then it should work subsequently.

Lucas-Mc avatar Apr 27 '21 11:04 Lucas-Mc

Hey @Lucas-Mc , I'm able to download multiple files at once after giving site permissions to the Chrome pop-up blocker. Do you think we should put a note about allowing pop-ups somewhere (perhaps below the box that shows all the files)?

briangow avatar Apr 27 '21 13:04 briangow

Nice! I think @tompollard should take a look first to see since he's better at judging the appearance of things

Lucas-Mc avatar Apr 27 '21 14:04 Lucas-Mc