Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow multiple files download #268

Open
HIPPhilipp opened this issue Mar 3, 2022 · 3 comments · May be fixed by #294
Open

Feature Request: Allow multiple files download #268

HIPPhilipp opened this issue Mar 3, 2022 · 3 comments · May be fixed by #294

Comments

@HIPPhilipp
Copy link

It looks like that currently only individual files can be downloaded. The possibility to select multiple files or directories for download would be great. Thanks

@paulmillar
Copy link
Member

Yup, that sounds like a good idea.

@ZNikke
Copy link
Contributor

ZNikke commented May 11, 2023

Since this would likely need to support huge files the common solution of creating a temporary zip file for download would likely be error prone and limit the usability.

I looked around and found https://stackoverflow.com/questions/18451856/how-can-i-let-a-user-download-multiple-files-when-a-button-is-clicked which is a decent summary of the options available.

I first thought the downloads.download() API to be a good match, but that applies only to browser addon development it seems.

@paulmillar
Copy link
Member

Whether or not to create a .zip archive is (perhaps) a decision we could delegate to the user: for some people, having the contents in an archive might be better.

It looks like the downloads API exposes the browser's built-in support for downloading files. I didn't see something that suggested it was limited to addon developers, but I didn't read the API that carefully.

ZNikke added a commit to ZNikke/dcache-view that referenced this issue May 16, 2023
dCacheView is limited to file-by-file downloads, which is frustrating
users since there is support for multi-file selection.

This patch builds on the previous one to enable downloads for multi-file
selections. The simplest solution is implemented that triggers multiple
file downloads in the browser, this is also found to work best with
tablets and smartphones, where the traditional method by handling
multi-file download by providing a .zip archive of the files is really
cumbersome to handle.

There is also a completion of the implementation to handle
sub-directories in the shared-files view.

The end result is that it is now possible to select multiple files in a
directory and then download them in a smooth manner.

Fixes: dCache#268

Signed-off-by: Niklas Edmundsson <[email protected]>
ZNikke added a commit to ZNikke/dcache-view that referenced this issue Dec 5, 2023
dCacheView is limited to file-by-file downloads, which is frustrating
users since there is support for multi-file selection.

This patch builds on the previous one to enable downloads for multi-file
selections. The simplest solution is implemented that triggers multiple
file downloads in the browser, this is also found to work best with
tablets and smartphones, where the traditional method by handling
multi-file download by providing a .zip archive of the files is really
cumbersome to handle.

There is also a completion of the implementation to handle
sub-directories in the shared-files view.

The end result is that it is now possible to select multiple files in a
directory and then download them in a smooth manner.

Fixes: dCache#268

Signed-off-by: Niklas Edmundsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants