You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
File drop link stops uploading after a failed upload and later re-sends the failed file #4257
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
Create a secret file drop public link and open it
Click "Select files" and pick a file while the upload fails (e.g. block the POST in the dev tools)
The panel shows "Upload failed"
Let uploads work again, click "Select files" and pick another file
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".
Activity