Skip to content

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

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

On a file drop (upload-only) link, once an upload has failed, "Select files" no longer uploads anything. The failed file is then sent again, silently, with the next upload that does work.

registerUploadInput in uppyService.ts adds the change listener with { once: true } (since 360d6f7) but leaves listener="true" on the input, so the listener is never added again while the element lives. In the files view this doesn't show because the New menu remounts its input every time, but FilesDrop.vue returns early when nothing succeeded and keeps the same ResourceUpload mounted with a dead input. On top of that, failed files stay in Uppy's state and the next uppy.upload() sends them again, while the page only counts the new files.

Reproduction Steps

  1. Create a secret file drop public link and open it
  2. Click "Select files" and pick a file while the upload fails (e.g. block the POST in the dev tools)
  3. The panel shows "Upload failed"
  4. Let uploads work again, click "Select files" and pick another file
  5. Then use "Select folder" and pick a folder

Expected Outcome

Step 4 uploads the new file. Step 5 uploads only the picked files, and the page counts what was stored.

Actual Outcome

Step 4: the file chooser opens, but nothing is sent and there's no error. Step 5: the folder's file is uploaded and so is the earlier failed file (2 POSTs, both end up on the server), but the page says "1 file transferred".

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