Zip and Unzip feature from Web


#1

Hi everyone.
From what i can see, there is no possibility to open (in read mode), create (on the server without download) o unzip archives.
It would be great to have such features, especially when you have to upload from webdav hundreds of small files (1-500 Kb).
If this is already implemented, apologize for the request.
Thank you very much for your attention.


#2

I’m upvoting that idea, since it would be very convenient to be able to view a ZIP file’s contents by just clicking on it, instead of downloading the whole package and then unzipping it somewhere on your computer, just to look at its content.


#3

The feature to unzip files was considered a security concern, see here: https://github.com/nextcloud/server/issues/1573

Being able to pack files via zip would be a nice feature indeed.


#4

Considering the fear of ZIP bombs: It’s possible to unzip a file into a isolated directory which gets strictly overwatched and controlled. If the size of that directory enlarges to an unsafe state, it gets cleared and the unzip process fails. As simple as that. The native ZIP/UNZIP library of any OS could be used for that, no?


#5

I am aware of the zip bomb “exploit”. However we’ll apply quota and limits to files and folders so this shouldn’t be an issue.
From what I can see and understand here: https://docs.nextcloud.com/server/15/developer_manual/api/OC/Archive/Archive.html
there is already the functionality in place so I think can be done.


#6

Any idea?
Do you think we should create an app?