igorkasyanchuk/active_storage_validations

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

Geschlossen

#316 geöffnet am 05.12.2024

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Ruby (148 Forks)github user discovery
enhancementgood first issue

Repository-Metriken

Stars
 (1.179 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide