Your afterthought speculation is correct. I probably should have pointed out straight away that the Nginx:: module and related others such as are found on CPAN is/are not the same as the interface module distributed with nginx (called simply nginx::, notice lower case). This confused me greatly at first.

Indeed, If I gather right, the Nginx (capitalized) module is a relic from early nginx distribution days. While now (apparently) deprecated, unfortunately it contained API features not present in the (current) nginx distribution's module. So, for example, there is no $r->upload() method. There's also no $r->headers_in() method (note plural) to enumerate all headers; one must anticipate them in order to use $r->header_in() for each.

In any case, after seeing your code, and to my optimistic delight, HTTP::Body does indeed look like it will put the uploaded "parts" in temporary files, with metadata information in a $body->upload() hash accessor. So thanks for that suggestion! I'll try that one too before reporting back, too.


In reply to Re^4: On-disk multipart/form-data part extraction by Conquistadog
in thread On-disk multipart/form-data part extraction by Conquistadog

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.