Skip to content

Commit

Permalink
allow selecting only txt, pdf, doc, ppt file types #40
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Feb 3, 2023
1 parent 2b1e438 commit 04aca96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/stories/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<div class="mb-3">
<%= form.label :documents, :class => "form-label" %>
<%= form.file_field :documents, multiple: true, direct_upload: true, :class => "form-control" %>
<%= form.file_field :documents, multiple: true, direct_upload: true, :class => "form-control", :accept => ".xlsx,.xls,image/*,.doc, .docx,.ppt, .pptx,.txt,.pdf" %>
</div>

<div class="my-5">
Expand Down

0 comments on commit 04aca96

Please sign in to comment.