Hartator
Hartator

Reputation: 5145

Best way to handle ajax upload?

form_for @model, :remote => true, :html => {:multipart => true } does not allow us to send file via ajax.

I have found this but it's not up to date and it relies on dependancies :

Anyone with up to date ressources ?

Upvotes: 0

Views: 471

Answers (2)

Tom
Tom

Reputation: 408

I've used Uploadify in a recent application http://www.uploadify.com/ Some Rails specific notes here http://railstips.org/blog/archives/2009/07/21/uploadify-and-rails23/ I know you said Rails 3, but the concepts are the same.

Upvotes: 0

Senthil Kumar Bhaskaran
Senthil Kumar Bhaskaran

Reputation: 7451

This is example for uploading File on Rails 3 using Jquery.

Make use of it, it is simple

https://github.com/blueimp/jQuery-File-Upload/wiki/jQuery-File-Upload-for-Rails-3

Upvotes: 1

Related Questions