mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 22:58:08 +00:00
Closes #9226 ## Summary Image uploads had no timeout or abort mechanism, meaning a stalled upload could hang indefinitely with no user feedback. This adds a 2-minute timeout using `AbortController` and shows a user-friendly toast message when the upload times out. ## Changes - `src/composables/node/useNodeImageUpload.ts`: Added `AbortController` with a 120-second timeout to the `uploadFile` function. The abort signal is passed to `fetchApi`. In the `handleUpload` error handler, `AbortError` is now caught separately to display a localized timeout message. - `src/locales/en/main.json`: Added `uploadTimedOut` i18n translation key. --- Automated by coderabbit-fixer ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9491-fix-Add-timeout-and-abort-mechanism-for-image-upload-9226-31b6d73d365081d7a7d7f7016f3a71c6) by [Unito](https://www.unito.io) --------- Co-authored-by: CodeRabbit Fixer <coderabbit-fixer@automated.bot> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Christian Byrne <cbyrne@comfy.org>