Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails - input type=”file” multiple

I'm still on the hunt for an elegant multi-file upload for Rails.

I just learned about the "input type=”file” multiple"

Does Rails support this? Any examples? tips on how to implement for uploading multiple photos to a photoalbum model in Rails?

Thanks

like image 555
AnApprentice Avatar asked Oct 24 '10 02:10

AnApprentice


1 Answers

What you need is that more somenthing like this :

<%= f.file_field :attachment, :multiple => true %>

like image 193
Davidslv Avatar answered Sep 27 '22 23:09

Davidslv