How can I handle different files selection ?
html.erb
in my form I have several fields and a select box :
<td><%= check_box_tag 'selected' , pfile.name %> </td>
browser
http:/myserver/files?x=true&selected=file1&selected=file2
I thought I then could do something like this in my
controller
if params[:x].present?
#redirect to my download page with files[] for eg.
# don't really know how to proceed..
else
# return _error
end
Should I send my selected files(name) as an array ? Bad things may happen if too many files are selected and the URL is too large.. Although the size doesn't really matter , it that kind of situation I reckon it does though :)