Which ajax file upload plugin would best suit my configuration of Rails 2.0.2 and Ruby 1.8.8

Hello all,

I am trying to implement uploading of images in my project with some
kind of “faux” AJAX…
as I have read that it can’t be done otherwise… Kindly correct me on
this in case I am wrong…

I have after some research found two plugins, but I am not sure which to
go ahead with going forward. I was planning to make it work for me on a
POC and then integrate it in my project app which is using Rails 2.0.2
and Ruby 1.8.7 … I understand that the first thing that would come in
anybody’s mind is that this config is way outdated… But as of now … I
have to go ahead gettin it workin for this config…

Kindly suggest me which would be the best bet to get this working for
me…

I would like to add these are the options I have been able to find as of
now:-

From
http://www.railsinside.com/screencasts/295-screencast-easy-rails-file-uploads-using-ajax-and-jquery.html

and From
http://www.williambharding.com/blog/rails/rails-ajax-image-uploading-made-simple-with-jquery/

https://github.com/malsup/form.

Would there be any other plugin that you would recommend for this…?

I am making use of a paperclip commit from github of 08may08 for my prj
config

Also any good additional tutorials links/screencasts would really help…

Thanks for your time…

On May 24, 2011, at 9:59 PM, Mohnish J. wrote:

on a
as of
https://github.com/malsup/form.
Thanks for your time…
If you’re not using jQuery on the rest of your project (and at that
age of Rails, you probably weren’t) then you should look for one that
specifically uses Prototype.js or stand-alone (no library).

Here’s the first thing that Google suggested, to the query ‘rails
prototype.js ajax file upload’:

http://khamsouk.souvanlasy.com/articles/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent

Walter

Hi Walter,

Thanks for the link…

I need to make use of Jquery alone as a constraint somehow and yes
previously Jquery 1.4.2 has been used in my project app…

Walter D. wrote in post #1000778:

On May 24, 2011, at 9:59 PM, Mohnish J. wrote:

on a
as of
https://github.com/malsup/form.
Thanks for your time…
If you’re not using jQuery on the rest of your project (and at that
age of Rails, you probably weren’t) then you should look for one that
specifically uses Prototype.js or stand-alone (no library).

Here’s the first thing that Google suggested, to the query ‘rails
prototype.js ajax file upload’:

http://khamsouk.souvanlasy.com/articles/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent

Walter

Carry on, then. I didn’t know that. And I don’t have much (any)
experience with jQuery, whereas Prototype is as natural as English to
me by now. (sniff, sob, 3.1…)

Walter

You might want multi-file uploads (so the use can choose many files at
once in the browser’s file dialog), in which case SWFUpload is the way
to go.

This is a pretty good tutorial for use with Paperclip

http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails.html

-Jason

Thanks for all the help you could give for your end to a stranger
Walter…

Highly appreciated…:slight_smile:

Cheers…

Walter D. wrote in post #1000882:

Carry on, then. I didn’t know that. And I don’t have much (any)
experience with jQuery, whereas Prototype is as natural as English to
me by now. (sniff, sob, 3.1…)

Walter

Hi all,

I just want to firstly apologize for making a mistake in my question…
there is a typo,

I am basically using Ruby 1.8.7.

@Jason: Thanks for your response…

I actually did a git clone to the example
app(https://github.com/jimneath/swfupload---paperclip-example-app ) that
was implemented by Jim N. and I tried implementing the same to see
how it works… It didn’t seem to function as expected on click of the
“Browse” button. I don’t know exactly why…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs