Notes posted by ostapische
RSS feed
ostapische -
October 19, 2015
0 thanks
Multiple files
To use multiple file upload need to use variable_name[].
like this:
file_field_tag 'files[]', :multiple => true
and in controller:
if !params[ :files ].nil? params[ :files ].each{ |file| # do your staff } end