Skip to content

fix: keep upload batch out of uppy while the conflict dialog is open - #4140

Merged
JammingBen merged 1 commit into
mainfrom
fix/upload-conflict-dialog-concurrent-upload
Nov 4, 2026
Merged

JammingBen merged 1 commit into
mainfrom
fix/upload-conflict-dialog-concurrent-upload

Conversation

@JammingBen

@JammingBen JammingBen commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Description

While the upload conflict dialog was open, any other upload (e.g. a dropped file) called uppy.upload(), which uploads every file in Uppy's state, including the unresolved conflicting ones. This overwrote existing files without the user choosing to.

  • While the conflict dialog is open, the files of that upload batch are taken out of Uppy's state, so other uploads can't pick them up. Only the files the user decides to keep are added back once the dialog is answered.
  • Adding one of those files again while the dialog is open is ignored, same as for files already in the upload queue.

Closing the conflict dialog without answering it now drops the whole batch instead of leaving it pending. Previously the web-app-importer closed whichever modal was on top whenever any batch was added for upload, which would have dropped the batch whose conflict dialog it closed; that is fixed in opencloud-eu/web-extensions#657.

Known limitation: after the dialog is answered, the batch still awaits vault encryption and folder creation before its upload starts. An upload started in that window can still pick up the batch's files early. This was already the case before and is not caused by the conflict dialog, so it's left for a follow-up. See #4263.

Related Issue

@JammingBen JammingBen self-assigned this Nov 2, 2026
@JammingBen
JammingBen force-pushed the fix/upload-conflict-dialog-concurrent-upload branch 2 times, most recently from 4bd990c to 50ccb51 Compare November 2, 2026 14:28
@JammingBen JammingBen changed the title fix: defer upload while another batch awaits the conflict dialog fix: keep upload batch out of uppy while the conflict dialog is open Nov 2, 2026
@JammingBen
JammingBen force-pushed the fix/upload-conflict-dialog-concurrent-upload branch from 50ccb51 to 8eed3ac Compare November 2, 2026 14:39
@JammingBen
JammingBen force-pushed the fix/upload-conflict-dialog-concurrent-upload branch from 8eed3ac to 4fe9b73 Compare November 2, 2026 14:52
@JammingBen
JammingBen marked this pull request as ready for review November 2, 2026 15:04
@AlexAndBear

Copy link
Copy Markdown
Member

Can we create an issue for the planned follow-up, so it doesn't get lost?

@JammingBen

Copy link
Copy Markdown
Member Author

Can we create an issue for the planned follow-up, so it doesn't get lost?

I created #4263 for this.

@JammingBen
JammingBen merged commit 3a86af4 into main Nov 4, 2026
28 checks passed
@JammingBen
JammingBen deleted the fix/upload-conflict-dialog-concurrent-upload branch November 4, 2026 07:39
@openclouders openclouders mentioned this pull request Nov 4, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uploading another file while the conflict dialog is open overwrites the conflicting file

2 participants