file upload size and malformed header

2000-10-03 Thread Monika Soroczynska

Hi,

We're trying to write a CGI script to upload pdf fils, at slash site 
at www.ecept.net. We can get it to accept files, however, when we start 
trying to upload larger files, we run into trouble.  The first roadblock 
occured inexplicably at 75k.  Any files uploaded larger than 75k were 
rejected with a "Malformed header" error in the httpd error log.

Next we tried playing around with the $CGI::POST_MAX variable, and
we were able to get up to about 300k that way, but even if $CGI::POST_MAX
is set to 1 Mb, any attempt to upload a file larger than ~300k results
in a malformed header message *and* a message about resetting the maximum
upload size to 75k!?  We have since wrote "stripped down" versions
of the script to see if the problem is in slash, mod_perl, or apache
(even running a script on one of our other webservers that does not
have mod_perl running on it, and it worked fine).  As far as we can
tell, it looks like the problem might be in mod_perl somewhere, but we 
have not been able to track it down.  Has anyone seen this, or have any
suggestion about what to try next?

We're running Apache 1.3.12 with mod_perl 1.24. and slash-1.0.8

Monika Soroczynska






Re: file upload size and malformed header

2000-10-03 Thread E.S.

It's not likely that the problem is in mod_perl... At least not based on
my own experiences...

I've a script that I use under mod_perl for uploading files (images) that
hasn't run into any problems with file size...

If you want a copy, email me offlist and I'll send it over; maybe it'll
help, maybe not...

e.


On Tue, 3 Oct 2000, Monika Soroczynska wrote:

 Hi,
 
 We're trying to write a CGI script to upload pdf fils, at slash site 
 at www.ecept.net. We can get it to accept files, however, when we start 
 trying to upload larger files, we run into trouble.  The first roadblock 
 occured inexplicably at 75k.  Any files uploaded larger than 75k were 
 rejected with a "Malformed header" error in the httpd error log.
 
 Next we tried playing around with the $CGI::POST_MAX variable, and
 we were able to get up to about 300k that way, but even if $CGI::POST_MAX
 is set to 1 Mb, any attempt to upload a file larger than ~300k results
 in a malformed header message *and* a message about resetting the maximum
 upload size to 75k!?  We have since wrote "stripped down" versions
 of the script to see if the problem is in slash, mod_perl, or apache
 (even running a script on one of our other webservers that does not
 have mod_perl running on it, and it worked fine).  As far as we can
 tell, it looks like the problem might be in mod_perl somewhere, but we 
 have not been able to track it down.  Has anyone seen this, or have any
 suggestion about what to try next?
 
 We're running Apache 1.3.12 with mod_perl 1.24. and slash-1.0.8
 
 Monika Soroczynska