Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: Re: CGI file upload - endless loop??

by sedhed (Scribe)
on Jul 19, 2002 at 21:07 UTC ( #183457=note: print w/replies, xml ) Need Help??

in reply to Re: Re: CGI file upload - endless loop??
in thread CGI file upload - endless loop??

Well first things first... The syntax for setting upload limits is:

$CGI::POST_MAX=1024 * 200; # max 200k posts # also, though it's already a default... $CGI::DISABLE_UPLOADS = 0;

I don't know where your got the $cgi_lib::maxdata line, but it's not going to to anything. Note that is entirely different from, and is the generally recommended tool. Sounds like you might be looking at docs or code that were written for

To narrow the problem, you could try a simple form with no file fields, just a text box or two, and see how the simple test script responds.

I've posted a copy of the test script at, feel free to point your form at it for testing. (Max 200k posts is set.)

Update, typo: changed from /cgi/ to /cgi-bin/

If the test script works on my server, but not yours, I suspect you might have networking and/or server problems. On the other hand, if it doesn't work for you on my server, I suspect you have client/browser problems, since your sample form works nicely for me when pointed at the above URL. I get...

    Got Something:
  • file: C:\temp\test.jpg
  • Submit: Add Image

What OSes are involved, and what web server software are you using? Also, be sure to clear your browser cache when doing testing like this, I tell ya the wierdest stuff can happen with IE's caching :)

Good luck....

Replies are listed 'Best First'.
Re: Re: Re: Re: CGI file upload - endless loop??
by lpoht (Sexton) on Jul 21, 2002 at 19:18 UTC
    Thanks, the problem was that Perl had defaulted to disabe uploads. Adding $CGI::DISABLE_UPLOADS = 0; worked. Thanks again!!

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://183457]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-05-24 22:35 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (84 votes). Check out past polls.