http://www.perlmonks.org?node_id=105228


in reply to Re: Re: Re: Problem with uploading file
in thread Problem with uploading file

OK time for some lower level debugging. To check that the info is coming through to your upload script OK replace it with this:

#!/usr/bin/perl read(STDIN,$buf,$ENV{'CONTENT_LENGTH'}); print "Content-Type: text/html\n\n"; print $buf;

This will print the raw post data to screen. You should see something like

blah blah ..... ------------------------2325446af455 name1 value1 ------------------------2325446af455 name2 value2 ------------------------2325446af455 ....

This is how the raw data is sent when you use form encoding. The --xxx is the boundary. Anyway you should be able to see your form data (name/value pairs) plain as day. If it is there then CGI.pm would seem broken, if not it is your form.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print