owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
427 stars 159 forks source link

[web] Unzip in Web #11264

Closed tbsbdr closed 1 month ago

tbsbdr commented 1 month ago

Description

User Stories

Value

Acceptance Criteria

Definition of ready

Definition of done

Visual

screenshot_002939

AlexAndBear commented 1 month ago

Nice πŸ™‚

But I wonder why we need a new config variable. Will there be systems or user clients where the admin knows that they can safely set a higher value ?

JammingBen commented 1 month ago

This is predestined to run in a web worker since this is most likely a synchronous (=UI blocking) task.

But I wonder why we need a new config variable. Will there be systems or user clients where the admin knows that they can safely set a higher value ?

Also unsure about this. I feel like we need to limit the number if we really want to do this on the client side. Hence a config might not be necessary 🀷

AlexAndBear commented 1 month ago

Additionally even with the pros @tbsbdr mentioned. I think it will still be an anti-pattern/bad-design to not let the server handle the unzip .

dschmidt commented 1 month ago

Dunno, I assume we should be rather conservative when assuming how much power the users' computers have... I assume setting a higher value might only be relevant in super small private instances and seeing your current crusade against config options :P it might not be worth adding a config option for that for now

phil-davis commented 1 month ago

Just to clarify the requirement - "Extract here" does that mean that "here" is the folder that the Zip file itself is in? That folder is a folder on the server that is not already "synced" to anywhere on the local machine that is running the browser. So as "web" unpacks each file from the zip-file, it will write the file back to the server (= upload it).

Or is there supposed to be a dialog that let's the user choose a local place to put the extracted files on their local system?

AlexAndBear commented 1 month ago

Just to clarify the requirement - "Extract here" does that mean that "here" is the folder that the Zip file itself is in? So as "web" unpacks each file from the zip-file, it will write the file back to the server (= upload it).

Correct (Also means, higher network load and similar disk load + more error prune compared to server side extraction)

kulmann commented 1 month ago

Candidate for a lib: https://github.com/nika-begiashvili/libarchivejs

AlexAndBear commented 1 month ago

Candidate for a lib: https://github.com/nika-begiashvili/libarchivejs

Looks like it has inbuilt web-worker, which is kinda cool and Password decryption for possible follow-up