If you exceed POST_MAX CGI.pm flags it by setting cgi_error as follows....

$self->cgi_error("413 Request entity too large");

Just check the error messages using the cgi_error() method and the solution is to hand. Could I subtly hint that you read up about indentation. Settle on any style but aim for consistency. I find your code somewhat painful to read and harder to follow that it would be if it was formated in a less haphazard way. Have a look a perltidy and its output for some suggestions.

Now to be pedantic 1MB is 1024*1024 bytes so 1.7MB is 1.7*1024*1024 == 1782759 Bytes. This is nothing like 1536000 bytes. It is 1972633.6 bits different :-) When I read rather inaccurate comments like that it........

cheers

tachyon


In reply to Re: My Upload script, Am I even on the right track? by tachyon
in thread My Upload script, Am I even on the right track? by perleager

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.