forked from cs3org/reva
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Is your feature request related to a problem? Please describe.
When downloading a single directory from the UI, the resulting filename is always download.zip.
Describe the solution you'd like
Instead it would be much more user-friendly to name the archive after the selected directory. That's also what is currently implemented in the oCIS reva.
Additional context
- the filename is passed to the browser by setting the `Content-Disposition" header here.
- this defaults to
download.ziphere for directories and multiple file objects.
I'm not familiar with the codebase and even with go in general, so I'm struggling to provide a PR here. Maybe someone else can solve this or provide a few hints on how to retrieve the directory name from the ResourceId within the CreateZip() or CreateTar().
Thanks!
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status