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
If we use the file upload dialog, we can upload .txt files as well as .TXT files. But if we use the drag and drop feature, we can only upload .txt files. If we try to drag and drop .TXT files we get the error message: Invalid file type only .txt allowed.
It is very weird that the upload dialog and the drag and drop feature behave differently.
Describe the bug
We implemented a chat application with file upload. We added the file upload via:
If we use the file upload dialog, we can upload
.txt
files as well as.TXT
files. But if we use the drag and drop feature, we can only upload.txt
files. If we try to drag and drop.TXT
files we get the error message:Invalid file type only .txt allowed
.It is very weird that the upload dialog and the drag and drop feature behave differently.
Have you searched existing issues? 🔎
Reproduction
Start the app and try uploading a file with
.TXT
suffix and the error will occur.If you change
SUPPORTED_FILES = [".txt", ".TXT"]
drag and drop will work for.TXT
Nevertheless, IMO the different behavior between file upload dialog and drag and drop is very strange.
Screenshot
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: