UPDATE: After looking over perldoc CGI and looking at the code of CGI.pm, I've determined that the default for POST_MAX is no limit to the amount of information.

Since then, I ran some more tests: the success or failure of the post seems to have only to do with the amount of data being sent in the text field. If I do not upload an image, and upload more than approx 4096 bytes of data in the text field, it fails. If I upload less than approx 4096 bytes in the text field, it succeeds, irregardless of image.

I am scouring the web for information about a maximum amount of data for a given name=value pair... possibly a buffer size?

If anyone has anything to offer here, much appreciated. Meanwhile, I'm re-writing this code to offer better debugging and looking at CGI::DebugVars.

FURTHER UPDATE: I've since determined that the amount of data has nothing to do with the failure. I will investigate with various debugging tools and report back. Thx to everyone for your attention.

Chris


In reply to Re: $CGI::POST_MAX question by alienhuman
in thread $CGI::POST_MAX question by alienhuman

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.