Hi, all.

I have a mod_perl script that is handling a multipart/form-data request wherein a user has attached a series of files for uploading. Unfortunately, some of those files can be quite large so when I instantiate the query object, it's taking forever. Based on my debugging I'm guessing that all the request data (including the uploaded file data) has to be pulled in prior to creation of the query object.

Is there any way around this? I have a way of keeping the user notified of upload progress, but it requires that I have some of the parameters being passed in through the form. If I have to wait until all the data is transfered, well, keeping the user posted on progress is pretty useless. Is there any way to do "my $q = new CGI;" without it taking the time to process _all_ the file data, do some pre-processing around the non-upload parameters and _then_ go handle the uploaded files? Alternatively, is there a way to have "new CGI" process in the back-ground?

Thanks a bunch, monks.

In reply to Deferred/selective processing in CGI.pm by Anonymous Monk

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.