Skip to content

"Skip" in the upload conflict dialog doesn't skip: skipped files and folders are uploaded and overwrite the existing ones #3654

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

"Skip" in the upload conflict dialog doesn't skip: skipped files and folders are uploaded and overwrite the existing ones. Cause: packages/web-app-files/src/HandleUpload.ts:479-490 removes skipped files from Uppy only when every file was skipped; otherwise they stay queued and uploadFiles() (:533) uploads everything.

Reproduction Steps

  1. A folder contains one.txt and two.txt.
  2. Upload local one.txt, two.txt and a new fresh.txt together.
  3. Click Skip in both conflict dialogs (or "apply to all" + Skip).

Expected Outcome

Only fresh.txt is uploaded.

Actual Outcome

one.txt and two.txt are overwritten with the local content; the panel says "1 file uploaded". Skipping a folder that has subfolders also overwrites its files, then fails with POST 412, throws Cannot read properties of undefined (reading 'successCount') and the panel hangs at "Finishing upload…".

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions