puter icon indicating copy to clipboard operation
puter copied to clipboard

Add Cancellation Button for Ongoing Zip Operations

Open jelveh opened this issue 11 months ago • 13 comments

Description:

Currently, when performing a zip operation on files or folders, a progress window is displayed to inform the user of the ongoing process. However, this progress window lacks a cancellation option. This means that users have no way to interrupt the zipping process once it has started, aside from potentially having to refresh Puter, which is neither convenient nor safe.

Suggested Solution

Implement a "Cancel" button within the progress window of zip operations. This button would allow users to safely terminate the zip process at any point.

jelveh avatar Mar 17 '24 02:03 jelveh

can you elaborate more on this issue

SaiUddisa avatar Mar 18 '24 15:03 SaiUddisa

i didnt see any progress window while using zip operation. Its just displaying a buffering animation and doing the task. Should I add the cancel button there or what?

SaiUddisa avatar Mar 18 '24 15:03 SaiUddisa

i didnt see any progress window while using zip operation. Its just displaying a buffering animation and doing the task. Should I add the cancel button there or what?

Yes, that's the progress window. It doesn't currently show how complete the task is, but eventually it will.

AtkinsSJ avatar Mar 19 '24 16:03 AtkinsSJ

When I tried to solve this problem, I found that jszip unsupport cancel. What should I do next?

https://github.com/Stuk/jszip/issues/594

meetqy avatar Mar 24 '24 05:03 meetqy

this sucks. Let me think about it a little.

jelveh avatar Mar 24 '24 17:03 jelveh

jszip seems to have stopped being developed a couple of years ago, so it's unlikely we could get it modified to add cancellation. But maybe we could fork it.

Alternatively, archiver looks like a decent alternative that does support aborting a request.

AtkinsSJ avatar Mar 27 '24 09:03 AtkinsSJ