On Thu, 2006-06-01 at 12:59 -0400, Garrison Hoffman wrote: > I've tried numerous variations, but can't get POST_MAX to work properly. > Everything works fine without it. > > my $POST_MAX = 1024*1024*10; > my $req = Apache2::Request->new($r, POST_MAX => $POST_MAX); > > The error log tells me only "Conflicting information", which seems > exceedingly unhelpful. > > Can someone point me in the right direction?
If the POST_MAX is exceeded, it doesn't complain until it tries to parse the parameters. This is what I've used to make it work: my $req = APR::Request::Apache2->handle($r); $req->read_limit($Read_Limit); $req->parse(); if ($req->body_status eq 'Exceeds configured maximum limit') { die('Body exceeds max upload size'); }; clint