Files
open-webui/src/lib/components
Classic298 69f8be4cf9 fix: show download preparation toast and prevent duplicate zip jobs (#27421)
* fix: show download preparation toast and prevent duplicate zip jobs

Downloading a file or folder from the file navigator gave no feedback while the server prepared the response, which can take 30 seconds or more for large folders that are zipped server-side. Users assumed the click did nothing and pressed Download again, starting additional zip jobs on the server. Both downloadFile and bulkDownload, the two functions every download control funnels through, now show a persistent "Preparing download..." loading toast while the request is in flight and dismiss it once the download starts or fails. A shared downloading flag makes repeated clicks no-ops until the current download finishes, so a single click starts exactly one server-side job. Fixes #27055

* fix: report terminal download failures instead of dismissing the toast

A failed download dismissed the preparation toast without saying anything, which reads as the download silently disappearing. Both download paths now report the failure. The two helpers also declare a nullable return but could still reject once the response body started streaming, so an interrupted transfer escaped as an unhandled rejection and left the same silent dismissal. They now return null in that case, which also stops an interrupted preview from leaving its spinner running.
2026-07-26 18:55:09 -04:00
..
2026-07-23 13:18:04 -04:00
2026-07-20 01:33:47 -04:00
2026-07-23 13:18:04 -04:00
2026-07-15 04:25:51 -04:00
2026-07-26 18:46:39 -04:00
2026-07-14 04:15:20 -04:00
2026-07-20 00:23:01 -04:00
2026-07-20 00:23:01 -04:00
2026-07-15 04:55:38 -04:00
2026-07-15 04:25:51 -04:00
2026-07-14 04:15:20 -04:00
2026-07-20 22:10:11 -04:00