in reply to Re: Re: Mason upload limit size
in thread Mason upload limit size
No, you can vary the limit but you just have to make your My::ApacheHandler a little bit fancier.
package My::ApacheHandler; use base 'HTML::Mason::ApacheHandler'; sub prepare_request { my $self = shift; my $r = shift; my @args; ## <Location /foo> ## PerlSetVar MAH_POST_MAX 1024 ## </Location> ## <Location /bar> ## PerlSetVar MAH_POST_MAX none ## </Location> my $post_max = $r->dir_config( 'MAH_POST_MAX' ); unless( $post_max =~ /^none/ ) { push @args, POST_MAX => $post_max; } Apache::Request->instance( $r, @args ); return $self->SUPER::prepare_request( $r, @_ ); } 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Mason upload limit size
by physi (Friar) on Feb 13, 2004 at 23:22 UTC | |
Apache2 problem
by ph0enix (Friar) on Nov 29, 2004 at 16:10 UTC | |
Re^4: Mason upload limit size
by Savuud (Initiate) on Apr 06, 2005 at 13:24 UTC |