I've some questions regarding the usage of CGI::Application. I have a run-mode which handles file uploading. How can I set the $CGI::POST_MAX variable to limit the size of uploaded files? I will also want to dynamically set $CGI::DISABLE_UPLOADS if fiel uploading is disabled for some reason. Also, what is the easiest method to determine the MIME type of uploaded files? Right now I'm using the MIME::Types::by_suffix routine. Thanks for your help.
P.S. I forgot to ask, When finished with the upload run-mode, I'd like to go to my default mode, which just displays a form. Right now I'm redirecting to the url. Is there another way? Perhaps to directly call the subroutine associated with that run leve?