if($ENV{CONTENT_LENGTH} > $maxsize){ print "total files too large - must be less than $maxsize bytes"; exit; }