views:

35

answers:

1

Hello,

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

+1  A: 

This is easy in rails. If you're using form_for, do it like so:

form_for(@user, :html => {:multipart => true}) do |f|

If you're doing this with form_tag, it works like so:

form_tag new_user_path, :multipart => true

I hope this helps!

Jaime Bellmyer
@Jaime, I should have been clearer. I'm interested in the file input tag "multiple" where you click BROWSE and can select multiple files at one time. not having to click and browser with multiple input buttons. Make sense?
AnApprentice