Rectangle 27 0

How do I upload multiple files in Rails 4 (with jquery)?


<%= file_field_tag 'files[]', multiple: true %>
<%= file_field_tag :file, multiple: true %>

Thanks. After doing that, I just needed to change the backend to deal with an array (as opposed to the repeated JS calls the railscast has).

Note
Rectangle 27 0

How do I upload multiple files in Rails 4 (with jquery)?


<%= file_field_tag 'files[]', multiple: true %>
<%= file_field_tag :file, multiple: true %>

Thanks. After doing that, I just needed to change the backend to deal with an array (as opposed to the repeated JS calls the railscast has).

Note