Hi
I have a form like
<%= form_remote_tag :url => { :action => ‘attach_file’,
:id => @sd_ticket.id },
:enctype => ‘multipart/form-data’ %>
| <%= text_area "service_desk_attachment1", "description", "cols" => 50, "rows" => 1 %> |
Hi
I have a form like
<%= form_remote_tag :url => { :action => ‘attach_file’,
:id => @sd_ticket.id },
:enctype => ‘multipart/form-data’ %>
| <%= text_area "service_desk_attachment1", "description", "cols" => 50, "rows" => 1 %> |
as far as I know, you can’t upload files through an AJAX call. Also,
start_form_tag is deprecated, so you shouldn’t use that anymore.
Mike
On Fri, Mar 14, 2008 at 12:50 PM, Mike G. [email protected]
wrote:
yes, there is way but you have to use the “iframe remoting pattern” to
do that
This great tutorial was a great help (just a walktrough):
http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent
maerzbow
http://blog.odeley.com
Hi
And finally I suceeded in the file upload (ajaxway) using
responds_to_parent,uploadcolumn with iframe remoting pattern
Thanks for your help
Sijo
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs