igorkasyanchuk/active_storage_validations

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

オープン

#316 opened on 2024/12/05

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Ruby (148 件のフォーク)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (1,179 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド