in reply to Setting max upload size/MIME types

Did you check if there was an error reported by CGI? Did you receive the large file? A POST larger than the limit should report an error through the error method.
my $error = $cgi->error(); if ($error) { die $error; }
To get the MIME type that the browser report, use the uploadInfo mehod.
my $file = $cgi->param('upload'); my $content_type = $cgi->uploadInfo($file)->{'Content-Type'};

Replies are listed 'Best First'.
Re: Re: Setting max upload size/MIME types
by perleager (Pilgrim) on Mar 17, 2004 at 20:34 UTC
    Hey,

    I had previously added the form attribute required to upload.

    Yes, the larger file ends up being uploaded.

    I will try you playing around with my coding with your following suggestions and will update this thread if succesfull for others to use for future referrence.

    Thanks,
    Anthony