Skip to content

fix: keep upload inputs working after a failed upload - #4260

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/filesdrop-upload-after-failure
Nov 13, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/filesdrop-upload-after-failure

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • File drop: after a failed upload, "Select files" and "Select folder" upload again instead of doing nothing.
  • No silent re-upload: a new upload no longer sends earlier failed files along with it, so the counts match what's stored. Retry in the upload panel still works.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: upload inputs add files on every change, not only the first one
  • test case 2: unit: failed files are dropped when a new batch starts while nothing is uploading, and kept while another upload is still running
  • test case 3: unit: retry still re-sends failed files, and a re-added failed file is uploaded
  • test case 4: browser: file drop link with a failed upload, then file and folder picks, same file again (desktop and Pixel 7), reproduced on main first
  • test case 5: browser: files view retry, new uploads after a failure with and without closing the panel, overlapping uploads

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the fix/filesdrop-upload-after-failure branch from 498de58 to c9e5802 Compare November 9, 2026 11:32
Comment on lines +605 to +608
if (!Object.keys(this.uppyService.getCurrentUploads()).length) {
// nothing is running, so the upload info starts over. uppy would silently re-send failed files otherwise
this.uppyService.removeFailedFiles()
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chatted a bit with my agent, it claims that the logic for deciding if an upload is running here differs from the one in UploadInfo.vue, and they could diverge. You could call uppyService.removeFailedFiles() in UploadInfo's uploadStarted handler when !runningUploads instead.

@AlexAndBear
AlexAndBear merged commit 79c085b into main Nov 13, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/filesdrop-upload-after-failure branch November 13, 2026 06:30
@openclouders openclouders mentioned this pull request Nov 13, 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.

File drop link stops uploading after a failed upload and later re-sends the failed file

2 participants