Skip to content

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

Open
@Mth0158

Description

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" %>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions