Problem using form_remote_tag and multipart

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 J. 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.

Alex Y. wrote:

Thiago J. 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.

Wed, 01 Feb 2006, Thiago J. wrote:

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