Problem when form set to enctype="multipart/form-data"

912 views
Skip to first unread message

yorks

unread,
Sep 9, 2009, 3:33:35 AM9/9/09
to reCAPTCHA
HI all

I have reCaptcha working fine but I have a form where I also want the
user to be able to upload images. To do this I have to set the form
type to enctype="multipart/form-data" eg

<form action="process.asp" method="post" enctype="multipart/form-
data">

When I include the enctype="multipart/form-data" in the form the
capthca does work. if I take it out it works fine.

Any ideas ?

thanks

kd yadav

unread,
Sep 9, 2009, 2:11:36 PM9/9/09
to reca...@googlegroups.com

Jeff Enderwick

unread,
Sep 9, 2009, 2:38:10 PM9/9/09
to reca...@googlegroups.com
Yeah - I just figured this out coincidentally :-). Look at
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4
search into the page for 'Larry' and you will find an example of
multipart form upload in conjunction with POST parameters. I just go
through testing this (using Cocoa, not Javascript), and it does work
(I am using Django on the server side). BE CAREFUL about the \r\n and
\r\n\r\n - make them as you see it in the example, if you do not, you
may be f*cked.

Lime

unread,
Sep 25, 2009, 3:49:45 PM9/25/09
to reCAPTCHA
Has anyone figured out how to make the captcha work when
enctype="multipart/formdata" ? I am using classic asp and I can get
the captcha to work fine if I remove the enctype, but it will not work
if it's in there.

thanks

On Sep 9, 11:38 am, Jeff Enderwick <jeff.enderw...@gmail.com> wrote:
> Yeah - I just figured this out coincidentally :-). Look athttp://www.w3.org/TR/html401/interact/forms.html#h-17.13.4
> search into the page for 'Larry' and you will find an example of
> multipart form upload in conjunction with POST parameters. I just go
> through testing this (using Cocoa, not Javascript), and it does work
> (I am using Django on the server side). BE CAREFUL about the \r\n and
> \r\n\r\n - make them as you see it in the example, if you do not, you
> may be f*cked.
>
> On Wed, Sep 9, 2009 at 11:11 AM, kd yadav<kdy...@gmail.com> wrote:
>

Jeff Enderwick

unread,
Sep 25, 2009, 5:39:57 PM9/25/09
to reca...@googlegroups.com
totally. the TR shows what you need to send on the wire, how you do that in asp, I have no idea...
Reply all
Reply to author
Forward
0 new messages