ocis icon indicating copy to clipboard operation
ocis copied to clipboard

Use Folder's name as ZIP filename, when downloading a folder

Open TheGranadilla opened this issue 3 years ago • 4 comments

Archiver currently generate "download.zip" when user download a folder. Archiver should use folder's name as zipfile name.


Downloading multiple folders one by one will makes "download(1).zip, download(2).zip, download(3).zip..." files, and it's painfull to sort this out once downloaded ^^

Note : Using ownCloud Web UI 6.0.0 / Infinite Scale 2.0.0 Community

TheGranadilla avatar Feb 27 '23 16:02 TheGranadilla

@fschade @kulmann Didn't we fix that already?

micbar avatar Feb 27 '23 16:02 micbar

Not to my knowledge. Just tested again on our web demo instance and that still announces download.tar as filename from the archiver service. As of https://github.com/owncloud/web/pull/8466 web really uses the filename that's announced in the archiver response. So I assume it needs to be fixed in the reva archiver service.

kulmann avatar Feb 27 '23 22:02 kulmann

Not to my knowledge. Just tested again on our web demo instance and that still announces download.tar as filename from the archiver service. As of owncloud/web#8466 web really uses the filename that's announced in the archiver response. So I assume it needs to be fixed in the reva archiver service.

Just dug around reva out of curiosity and found https://github.com/cs3org/reva/blob/605cec43f46ebef9846f50041dcf82af5027b138/internal/http/services/archiver/handler.go#L239 (using the name defined in the configuration) - also, there would need to be a differentiation between "downloading a folder as archive" (where it would be fine to use the folder name as archive name) and "downloading a selection of files" (where it is kinda unavoidable to have potentially repeating names, unless you e.g. pre-/postfix them with a download timestamp maybe?)

pascalwengerter avatar Feb 27 '23 22:02 pascalwengerter

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 01 '23 14:05 stale[bot]