Forum: Ruby on Rails form_remote_for & file uploads

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
96956a77a329c7f8622e7c81396655fd?d=identicon&s=25 Justin Williams (Guest)
on 2007-02-27 18:04
(Received via mailing list)
Has anyone successfully gotten Ajax file uploads working using
form_remote_for & attachment_fu?  I have seen Sean Treadway's
responds_to_parent plugin and many other samples available, and they
all seen to statically generate <form> tags.  Is there a way to get a
file upload to work using the Rails helpers?

<% form_remote_for(:message, @message, :url =>
contacts_messages_path(contact), :method => :post, :html =>
{:multipart => :true, :id => "new_message_form", :target => "frame"})
do |f| %>
<iframe id='frame' name="frame" style="display:none;"></iframe>
<% end %>

Help is appreciated.

- j
This topic is locked and can not be replied to.