Think about Loose Coupling | |
PerlMonks |
Re: CGI upload limitby valdez (Monsignor) |
on Sep 14, 2002 at 11:19 UTC ( [id://197844]=note: print w/replies, xml ) | Need Help?? |
Nice question, Ryszard. I would subclass CGI::Application and reimplement the query method:
Beware, the code isn't tested. The new method could also use a parameter passed during start up:
Then you could check this parameter and act accordingly
inside your reimplemented method. Another solution could be
creating a new CGI object (with POST_MAX set properly) and
passing it to application init; C::A will recognize the object
and use it; here is an excerpt from the man page: QUERY - This optional parameter allows you to specify an already-created CGI.pm query object. Under normal use, CGI::Application will instantiate its own CGI.pm query object. Under certain conditions, it might be useful to be able to use one which has already been created. Hope this helps. Ciao, Valerio
In Section
Seekers of Perl Wisdom
|
|