puter
puter copied to clipboard
Add Cancellation Button for Ongoing Zip Operations
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.
can you elaborate more on this issue
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?
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.
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
this sucks. Let me think about it a little.
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.