uppy/packages/@uppy
Copilot f6efd2ebcc
Fix allowMultipleUploadBatches by preventing file operations during upload (#6156)
## Implementation Plan for Transloadit allowMultipleUploadBatches Fix

- [x] Explore the codebase to understand existing structure
  - [x] Review transloadit/src/index.ts
  - [x] Review existing event handlers (#onError, #onCancelAll)
  - [x] Review install() and uninstall() methods
  - [x] Understand test structure
- [x] Implement the proper fix in
packages/@uppy/transloadit/src/index.ts
- [x] Set allowNewUpload: false at start of #prepareUpload
(preprocessor)
- [x] Reset allowNewUpload: true at end of #afterUpload (postprocessor)
  - [x] Reset allowNewUpload: true in #prepareUpload error handler
  - [x] Keep existing resets in #onError and #onCancelAll handlers
  - [x] Removed event listener approach (was causing race conditions)
- [x] Update tests to match implementation
- [x] Test allowNewUpload lifecycle through actual upload flow
(preprocessor/postprocessor)
  - [x] Test allowNewUpload reset on preprocessor error
  - [x] Test allowNewUpload reset on error event
  - [x] Test allowNewUpload reset on cancel-all
  - [x] Remove obsolete event listener tests

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mifi <402547+mifi@users.noreply.github.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2026-02-09 21:42:43 +08:00
..
angular build(deps): bump @angular/compiler from 19.2.17 to 19.2.18 (#6128) 2026-01-12 11:13:45 +01:00
audio build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
aws-s3 Dedupe dependencies (#6085) 2025-12-05 10:22:11 +01:00
box build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
companion @uppy/companion: fix 429 not returning JSON response with message (#6177) 2026-02-09 20:41:26 +08:00
companion-client [ci] release (#6011) 2025-10-17 20:24:52 +02:00
components [ci] release (#6166) 2026-02-03 11:08:41 +01:00
compressor build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
core build(deps): bump lodash from 4.17.21 to 4.17.23 (#6152) 2026-01-26 15:01:18 +01:00
dashboard build(deps): bump lodash from 4.17.21 to 4.17.23 (#6152) 2026-01-26 15:01:18 +01:00
drag-drop build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
drop-target [ci] release (#6060) 2025-12-02 10:09:28 +01:00
dropbox build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
facebook build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
form [ci] release (#6060) 2025-12-02 10:09:28 +01:00
golden-retriever build(deps): bump lodash from 4.17.21 to 4.17.23 (#6152) 2026-01-26 15:01:18 +01:00
google-drive build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
google-drive-picker build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
google-photos-picker build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
image-editor [ci] release (#6166) 2026-02-03 11:08:41 +01:00
image-generator build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
instagram build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
locales [ci] release (#6166) 2026-02-03 11:08:41 +01:00
onedrive build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
provider-views build(deps): bump lodash from 4.17.21 to 4.17.23 (#6152) 2026-01-26 15:01:18 +01:00
react [ci] release (#6166) 2026-02-03 11:08:41 +01:00
remote-sources [ci] release (#6060) 2025-12-02 10:09:28 +01:00
screen-capture build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
status-bar build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
store-default [ci] release (#5918) 2025-08-22 09:02:12 +02:00
svelte [ci] release (#6166) 2026-02-03 11:08:41 +01:00
thumbnail-generator [ci] release (#6060) 2025-12-02 10:09:28 +01:00
transloadit Fix allowMultipleUploadBatches by preventing file operations during upload (#6156) 2026-02-09 21:42:43 +08:00
tus [ci] release (#6166) 2026-02-03 11:08:41 +01:00
unsplash build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
url build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
utils @uppy/utils,@uppy/xhr-upload: create and use new queue (#6105) 2026-02-05 15:46:45 +01:00
vue [ci] release (#6166) 2026-02-03 11:08:41 +01:00
webcam build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
webdav build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00
xhr-upload @uppy/utils,@uppy/xhr-upload: create and use new queue (#6105) 2026-02-05 15:46:45 +01:00
zoom build(deps): bump preact from 10.26.9 to 10.26.10 (#6123) 2026-01-08 12:00:59 +01:00