Problem using form_remote_tag and multipart


#1

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


#2

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.


#3

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.


#4

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