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 CGI.pm is entirely different from cgi-lib.pl, and CGI.pm is the generally recommended tool. Sounds like you might be looking at docs or code that were written for cgi-lib.pl.

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 http://lmsg.net/cgi-bin/lc1/formtest.cgi, 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...



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....


In reply to Re: Re: Re: CGI file upload - endless loop?? by sedhed
in thread CGI file upload - endless loop?? by lpoht

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.