Skip to content
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

File file_types restricts the type of file uploaded but can be overridden #8662

Open
ecocarlisle opened this issue Jun 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ecocarlisle
Copy link

  • [Yes ] I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
When I set the file_types=['.md'] the dropdown filters out all other file types. However, when uploading a file you can change the dropdown to include all files and this then allows you to upload any file type.

Describe the solution you'd like
I'd like the file object to only allow the file type identified in the list of file_types. User should not be able to switch to all file types as work around.

Additional context
No additional context.

@abidlabs abidlabs changed the title File file_types restricts the type of file uploaded File file_types restricts the type of file uploaded but can be overridden Jun 28, 2024
@abidlabs abidlabs added the bug Something isn't working label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants