I have a form and e file field, and what I''m trying to do is when the file is uploaded, a div shows the uploaded image using ajax, without refreshing the page. But the problem I''m having is that with form_remote_tag it won''t accept :multipart => true. Any ideas? Thanks a lot
Thiago Jackiw wrote:> I have a form and e file field, and what I''m trying to do is when the > file is uploaded, a div shows the uploaded image using ajax, without > refreshing the page. But the problem I''m having is that with > form_remote_tag it won''t accept :multipart => true. Any ideas? > > Thanks a lotAjax simply can''t do file uploads cleanly. Google for hidden iframe image uploads, though - that''s one way around it. -- Alex
Thiago Jackiw
2006-Feb-01 19:32 UTC
[Rails] Re: Problem using form_remote_tag and multipart
Alex Young wrote:> Thiago Jackiw wrote: >> I have a form and e file field, and what I''m trying to do is when the >> file is uploaded, a div shows the uploaded image using ajax, without >> refreshing the page. But the problem I''m having is that with >> form_remote_tag it won''t accept :multipart => true. Any ideas? >> >> Thanks a lot > Ajax simply can''t do file uploads cleanly. Google for hidden iframe > image uploads, though - that''s one way around it.I was gonna do that, just thought Ajax could handle it. Thanks. -- Posted via http://www.ruby-forum.com/.
Henrik Ormåsen
2006-Jun-02 11:13 UTC
[Rails] Re: Problem using form_remote_tag and multipart
Wed, 01 Feb 2006, Thiago Jackiw wrote:> Alex Young wrote: > > Thiago Jackiw wrote: > >> I have a form and e file field, and what I''m trying to do is when the > >> file is uploaded, a div shows the uploaded image using ajax, without > >> refreshing the page. But the problem I''m having is that with > >> form_remote_tag it won''t accept :multipart => true. Any ideas? > >> > >> Thanks a lot > > Ajax simply can''t do file uploads cleanly. Google for hidden iframe > > image uploads, though - that''s one way around it. > > > I was gonna do that, just thought Ajax could handle it. Thanks. >Did you ever find a somewhat clean solution to this? Anybody who has suggestions? - Henrik