I am working on a live project and there is a requirement to upload only one file and then forced to a user to submit the form.
%input#primary-file-uploads{type: "file", name: "upload[upload]", class: "file-input"}
I removed multiple:"multiple"
attribute from input tag but it's still uploading multiple files. how can I approach it to complete my task