For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > December 2004 > browser timeout $CGI::POST_MAX









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author browser timeout $CGI::POST_MAX
google@taxandfinance.com

2004-12-23, 8:55 pm

Whenever I try setting $CGI::POST_MAX and then test uploading a file
that is larger, the browser tries forever to upload the file. I assume
it will eventually timeout but have yet to wait that long (after 5
minutes, i gave up). Happens with both IE and Mozilla. I comment out
this setting and the file is uploaded in a matter of seconds.

Perl version 5.8
CGI Version 3.05

relevant code:
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
$CGI::POST_MAX=1024 * 2000; # max 2000K posts
..
..
..
my $filename = $q->param('filename');
if (!$filename && cgi_error()) {
die "$CGI::POST_MAX exceeded";
}

Any help is appreciated,
Matt

p.s. happy holidays!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com