in reply to Re: Re: Reading file uploads
in thread Reading file uploads

Trust me - your script's fine. I tested it on two platforms and it works...ermmm - you *are* only uploading files of less than 4k, aren't you? If not, you need to remove / increase the value of $CGI::POST_MAX.

There's no difference between using a hand-crafted HTML form and using a CGI.pm generated one - the end result is exactly the same - a bunch of HTML that posts some data. Try using "print $fdata->Dump()" to show you exactly what params were posted.

In cases like this, it's always tempting to blame something else - "There's a bug in CGI.pm" or "The server's broken"...again, trust me...99.999% of the time, it's your code. If there was really a problem with something as basic as file uploading in CGI.pm, it'd have been found by now.

Cheers,
Ben

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.