How do I restrict a file upload input field so that only html.erb
files are accepted?
I have an input field like the following:
<%= f.input :upload_field, as: :file, label: false %>
I know the accept
setting can control this inside an input_html
tag but I am not sure how to implement it correctly.