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

[Validator/Helper] Add validator & helper method to facilitate microsoft documents to content_type validator #316

Open
Mth0158 opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Mth0158
Copy link
Collaborator

Mth0158 commented Dec 5, 2024

We could add a shorthand for msword, msexcel, msppt documents in our content_type validator.
This shorthand could also be made available to the views to alleviate the effort of writing something like:

<%= form.file_field :document, accept: ".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document" %>
@Mth0158 Mth0158 added enhancement New feature or request good first issue Good for newcomers labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant