in reply to Stumped with File::Find and -s

What, exactly, do you expect   $fsize = -s $filename; to do if $filename doesn't exist in the same directory that holds the script? You're doing this before you've created "$upload_dir/$filename". Is that what you intend to do?

Replies are listed 'Best First'.
Re: Re: Stumped with File::Find and -s
by bsexton1qBob Sexton (Novice) on Nov 22, 2002 at 01:53 UTC
    The $fsize = -s $filename is getting the size of the file they are trying to upload so I'll eventually be able to check that the limit is not reached, since 4 files are uploadable at a time from the input form.