Hello all,
when attempting to post a form with enctype="multipart/form-data" for
file uploading, I receive the following errors in my error_log and the
upload fails:
[Tue Nov 16 00:20:49 2004] [error] [client xx.xx.xx.xx] [libapreq] file upload forbidden
[Tue Nov 16 00:20:49 2004] [error] Apache::RequestNotes encountered a parsing error!
[Tue Nov 16 00:20:49 2004] [error] [client xx.xx.xx.xx] Invalid method in request -------------------------some key number here--
I have tried setting DISABLE_UPLOADS => 0 in the Apache::Registry
script, and I have tried setting 'PerlSetVar DisableUploads 0' in the
httpd.conf. Neither seems to work.
I also tried rebuilding apache/mod_perl and reinstalling libapreq and Apache::RequestNotes, all to no avail.
By browsing the archives the only answer I could come up with was
someone suggested downgrading CGI.pm, but in this case I am not using
CGI.pm.
Also, there is another issue which may be related. POST requests seem
to work for me according to the access log:
xx.xx.xx.xx - - [16/Nov/2004:06:10:18 -0500] "POST /search/search.pl HTTP/1.1" 200 823
but after the request, the POSTed values never show up
in the param() of CGI.pm or Apache::Request. GET requests names and
values work, but not POST. These POSTed values are very small, but
just in case I set MaxPostSize in httpd.conf to 10240. That didn't
help either. There is no evidence of this problem in the error log.
Both of these issues did not occur so long as I was running Redhat
7.2. When I moved to Fedora Core 2 final, the problems showed up.
Different versions of apache (1.3.27 and 1.3.33) and mod_perl (1.27 and
1.29) made no difference. I'm using Apache::Request version 1.3 and
Apache::RequestNotes 0.06 with Perl 5.8.3.
Your help would be greatly appreciated.
- Re: Upload/POST fails repeatedly with mod_perl 1.29 and 1... Raphael Ferguson
- Re: Upload/POST fails repeatedly with mod_perl 1.29 ... Stas Bekman
- Re: Upload/POST fails repeatedly with mod_perl 1.29 ... Raphael Ferguson
- Re: Upload/POST fails repeatedly with mod_perl 1.29 ... Raphael Ferguson