11175
(-- --)
February 5, 2009, 4:17pm
1
Hi I am using classic form_for to upload pictures using ajax.
<% form_for(:images, :url => formatted_images_path(:format => 'js'),
:html => { :multipart => true, :target => 'upload_frame' }) do |f| %>
Is there a way to catch the complete action? I would like to use
lightbox to show and crop the image in iframe.
thank you.
Petr
Daly
(Daly)
February 5, 2009, 4:31pm
2
Can you use form_remote_for?
11175
(-- --)
February 5, 2009, 4:41pm
3
Hi,
that is the trouble, the upload is not working with remote_form_for.
Cheers,
Petr
Daly wrote:
Daly
(Daly)
February 5, 2009, 5:11pm
4
I used this about a year ago and it worked fine
http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent .
Not sure if it still works with current versions of Rails.
In my latest app, I used swfupload to provide multiple file uploads
with a progress bar. There are better alternatives if you are using
apache and passenger.
I already used responds_to_parent successfully.
What are the better alternatives if we use Apache and Passenger?
Daly
(Daly)
February 6, 2009, 8:35pm
6