You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ian Colin Jones <Ia...@deutsche-boerse.com> on 2002/07/15 17:10:06 UTC

File upload fails when size exceeds 67k bytes

Hi,

I am running Apache 1.3 on  OpenVMS V7.2-1H1.  When I upload files to my server
all works fine, until the file size exceeds 67,066 bytes. My CGI is written in
Perl 5.6.

I have searched my Apache documentation looking for a limiting directive in my
httpd.conf file, with no success. Changing the byte limit on the Apache VMS
Account
didn't work either. Running my tests has shown that when the upload is
successful, the STDIN buffer in perl contains the file content, complete with
boundries. When the size exceeds 67,066 bytes, the buffer is empty and it
appears
the upload didn't start.

There doesn't seem to be any entries in the FAQ's regarding this problem and
VMS.

Is this an Apache configuration I have missed or a Perl issue. Any advise on
where
to continue my search will be received with thanks.

Ian..
--
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenenen Informationen
ist nicht gestattet.

The information contained in this message is confidential or protected by
law. If you are not the intended recipient, please contact the sender and
delete this message. Any unauthorised copying of this message or
unauthorised distribution of the information contained herein is prohibited.



Re: File upload fails when size exceeds 67k bytes

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Mon, 15 Jul 2002, Ian Colin Jones wrote:

> all works fine, until the file size exceeds 67,066 bytes.

I think it might be POST_MAX in CGI.pm.

73,
Ged.


RE: File upload fails when size exceeds 67k bytes

Posted by Charles <fr...@peakpeak.com>.
Under the 1.x version of mod_perl, the tecnique for increasing the POST size
is:

use Apache::Request;

handler
{
   my $r = shift;
   my $apr = Apache::Request->new($r, POST_MAX=>(1000*1024));
}

(see
http://perl.apache.org/docs/1.0/guide/snippets.html#Using_DESTROY_to_Finaliz
e_Output)

I have been unable to locate a similar technique under mod_perl ~2.0 as the
Apache::Request is still under development.

Charles


-----Original Message-----
From: Ian Colin Jones [mailto:Ian.Colin.Jones@deutsche-boerse.com]
Sent: Monday, July 15, 2002 9:10 AM
To: modperl@perl.apache.org
Subject: File upload fails when size exceeds 67k bytes



Hi,

I am running Apache 1.3 on  OpenVMS V7.2-1H1.  When I upload files to my
server
all works fine, until the file size exceeds 67,066 bytes. My CGI is written
in
Perl 5.6.

I have searched my Apache documentation looking for a limiting directive in
my
httpd.conf file, with no success. Changing the byte limit on the Apache VMS
Account
didn't work either. Running my tests has shown that when the upload is
successful, the STDIN buffer in perl contains the file content, complete
with
boundries. When the size exceeds 67,066 bytes, the buffer is empty and it
appears
the upload didn't start.

There doesn't seem to be any entries in the FAQ's regarding this problem and
VMS.

Is this an Apache configuration I have missed or a Perl issue. Any advise on
where
to continue my search will be received with thanks.

Ian..
--
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenenen Informationen
ist nicht gestattet.

The information contained in this message is confidential or protected by
law. If you are not the intended recipient, please contact the sender and
delete this message. Any unauthorised copying of this message or
unauthorised distribution of the information contained herein is prohibited.