CGI form and upload security

This is probably more of a general CGI.rb question than specifically file
uploads… but is there a way with the CGI library to limit the size of a
form input or an uploaded file?

With Perl’s CGI.pm there is a $MAX_UPLOAD (IIRC) that you can set, so that
someone can’t just willy-nilly submit 256 page input to a text field or an
ISO file to a picture gallery… at least not via the forms.

Is this an issue worth worrying about? And is there a way to handle it?

Thanks

-michael