Re: Upload/POST fails repeatedly with mod_perl 1.29 and 1.27

[prev] [thread] [next] [Date index for 2004/11/18]

From: Stas Bekman
Subject: Re: Upload/POST fails repeatedly with mod_perl 1.29 and 1.27
Date: 16:51 on 18 Nov 2004
Raphael Ferguson wrote:
> Thank you much for the quick response.
> 
> I tried setting the TMPDIR in startup.pl and in httpd.conf to no avail.

I was talking about CGI.pm when suggesting to set TMPDIR.

> The "[libapreq] file upload forbidden" error message is almost certainly
> coming from ibapreq's apache_request.c, line 591:
> 
> if (req->disable_uploads) {
> ap_log_rerror(REQ_ERROR, "[libapreq] file upload forbidden");
> return HTTP_FORBIDDEN;
> }
> 
> I just have no clue why req->disable_uploads is apparently returning
> true no matter what I do to make sure uploads are enabled.

Here, disable_uploads is set to one if you have called either of:

   Apache::Request->new($r, disable_uploads => 1);
   Apache::Request->new($r, DISABLE_UPLOADS => 1);

please see Request.xs in the distro. But may be something else is going 
wrong. Try to step through with gdb starting from ApacheRequest_new and 
see where things go wrong.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Upload/POST fails repeatedly with mod_perl 1.29 and 1.27
Stas Bekman 16:51 on 18 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52