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

Add accept option for file and files fields #1043

Closed
shiroemons opened this issue Jul 12, 2022 · 1 comment · Fixed by #1044
Closed

Add accept option for file and files fields #1043

shiroemons opened this issue Jul 12, 2022 · 1 comment · Fixed by #1044
Labels
Good first issue Good for newcomers hacktoberfest Help wanted We could use some help with this

Comments

@shiroemons
Copy link
Contributor

shiroemons commented Jul 12, 2022

Feature

It would be nice to be able to restrict by mime-types or filename extension in files and files.

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
https://api.rubyonrails.org/v7.0.3/classes/ActionView/Helpers/FormHelper.html#method-i-file_field

Current workarounds

Screenshots

Additional context

@adrianthedev
Copy link
Collaborator

This is not a bad idea and not that difficult to make. It would be a "pass through" option for the file/files field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue Good for newcomers hacktoberfest Help wanted We could use some help with this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants