pingdotgg/uploadthing

[Bug]: selecting same file twice breaks dropzone

Closed this issue ยท 8 comments

What happened?

When selecting the same file twice and removing one of them it will revert the dropzone back to its empty state but will still have the remaining file at the top and become unremovable.

2024-09-08.16-11-14.mp4

What did you expect to happen?

Removing one of the files should not throw me back to the empty view and should allow me to remove the remaining duplicate file.

Version

N/A

Reproduction Steps

  1. select file to upload
  2. select same file to upload
  3. remove one of the files
  4. try removing remaining file

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

How did you manage to get it to select the same file twice? When I try to reproduce this, it does not add the file the second time. (both with selecting, and with drag and drop)

Can you share what browser/os you are using?

Can you share what browser/os you are using?

I'm on Windows 11 and using Chrome v128.0.6613.120
I was able to select the same file multiple times by using file browser when clicking on the dropzone.

Ok, just confirmed, this seems to be a Chrome-specific bug.

Was able to repro on both MacOS and Windows using the latest release of Chrome. Will investigate further to see what we can do about it!

Thanks for the report ๐Ÿ‘

Ok, just confirmed, this seems to be a Chrome-specific bug.

The same issue seems to happen on firefox also. My firefox version is 130.0

Is this issue resolved? If not, you can assign it to me!

@C-W-D-Harshit - Unfortunately, this issue is with the dashboard, which is not part of the OSS repo. Appreciate the offer though!

I cannot reproduce this on latest macOS and Chrome with the recent dashboard update. Can anyone confirm this is resolved?

I cannot reproduce this on latest macOS and Chrome with the recent dashboard update. Can anyone confirm this is resolved?

Seems like it has been resolved. I'm no longer able to upload 2 of the same file.