-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultimodalTextbox - file_types seems not to be working? #8801
Comments
Cc @dawoodkhan82 i think it makes sense to refactor the logic in the frontend so it’s shared across all file components as we’ve heard various issues like this |
I encountered the same issue and look forward to a solution.🥹 |
This bug is still present in version 4.42.0. |
Same problem when using the |
This sounds like the same problem as #9098 ? Are you all using windows? |
Windows as OS to access Gradio, Linux running Gradio. |
Closed via #9393 |
@freddyaboulton this is not the same as the windows issue. The windows issue prevented users from being able to remove the default file type filter (e.g. from "images" to "all files" -- which requires a fix in the backend to prevent users from being able to submit invalid files). In this case for MultimodalTextbox, the file type filter was not working at all, but its been fixed by @dawoodkhan82 in #9393 |
@skye0402 Your example demo should work as expected now. Just note that you need to provide |
Describe the bug
I'm using the
MultimodalTextbox
but found that users upload PDF files to it, which makes no sense for my case. The setting forfile_types=
is on "images" but seems to have no effect. I would expect that you can't upload such files, but e.g..pdf
or.pptx
works. Similar behaviour like it is for the upload button and such would be appreciated.Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: