enable multiple
<% if false %>
<-- Not work: InvalidSignature -->
<%= file_field_tag('files[]',class: "form-control", multiple: true, id: :files) %>
<% end %>
<%= form.file_field :files, class: "form-control", multiple: true %>
@folder = Folder.find(params[:folder_id]) if params[:folder_id].present?
(params[:files]||[]).each do |f|
ps = {note: params[:note], file: f, user_id: current_user.id, folder: @folder}
@document = Document.create(ps)
end