in reply to Restricting the size of Input file

if someone is uploading a file via a form you can check:
$ENV{CONTENT_LENGTH}
I think there is also the -s test operator if you are checking the file size of a file on the file system.

Update:
As rinceWind said you can limit upload size such as:
$CGI::POST_MAX = 1_048_576; # 1 MB
Hope that helps

Replies are listed 'Best First'.
Re^2: Restricting the size of Input file
by cool (Scribe) on Nov 30, 2005 at 05:00 UTC
    Hey Guys, Thanx a ton.. I think I have found a nice place for my baby Perl : ) thanks ercparker, rinceWind and dmitri for your time. Will go back n try this. Hope this should solve the problem. chou,