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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Re: Reading file uploads
by benn (Vicar) on Apr 25, 2003 at 09:28 UTC
    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
    A reply falls below the community's threshold of quality. You may see it by logging in.