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

Implement folder download as archive #1698

Closed
labkode opened this issue May 10, 2021 · 1 comment · Fixed by #2066
Closed

Implement folder download as archive #1698

labkode opened this issue May 10, 2021 · 1 comment · Fixed by #2066
Assignees

Comments

@labkode
Copy link
Member

labkode commented May 10, 2021

Story

As a user I want to download a folder (as an archive) without having to download individual components.
As a user I also want to select multiple files and download them as an archive.

Requirements

The archive is user-agent dependant (zip for windows and tar for Linux/Mac).

How to implement

This functionality has been implemented in the ownCloud 10 web by having a dedicated API:
https://github.com/cernbox/revaold/blob/master/ocproxy/api/api.go#L163

We can do better than that ugly URL.
However, the logic of the implementation is correct and can be re-used (files param, etc ...).

Another possibility is to use a GET request over WebDAV to a folder. This approach will open a can of worms. To avoid.

I'd propose to have:
/download_archive and respecting the same parameters.

We need input from front-end team:
@micbar

@labkode labkode self-assigned this May 10, 2021
@labkode
Copy link
Member Author

labkode commented Aug 16, 2021

Ping @micbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants