> To limit the size of uploads, set $CGI::POST_MAX to the number of bytes per upload.
Forgot to mention that you must set that variable *before* you instantiate a CGI
object (or use
any of CGI's functions, if using the functional interface). Just put it right after
'use CGI' and
you'll be fine:
use CGI;
$CGI::POST_MAX = 1_048_576; # 1 meg file size limit
Cheers,
Curtis Poe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/