I want to limit user to select up to 2 files (in the input tag ?).
<%= f.file_field :images, multiple: true %>
I would like to limit user to select up to 2 files (front and backoffice).
Is there a way (preferable a hard coded option) to limit the number of files that user can select?