Sorry for the omissions. The webserver is Apache 1.3.x, and I've verified that the file is actually getting uploaded.

My original version of the CGI was straight Perl without using CGI.pm (I prefer not to use CGI.pm, as I feel it unnecessarily obfuscates many simple things), and I was very obviously receiving the file data but just couldn't figure out how to extract it from the multipart/form-data stream without using CGI.pm. I didn't include in my code snippet the file saving code I wrote for the CGI.pm version, because I didn't think it was relevant to the problem, but it does in fact save the file (correctly, and uncorrupted) ... I just can't get any information about the file, either before or after saving it.

Incidentally, with regard to enc-type, HTMLhelp.com's HTML4 reference page on the input element says, in part:

The ACCEPT attribute gives a comma-separated list of media types accepted, allowing the browser to filter out inappropriate files. Current browsers generally ignore the ACCEPT attribute.

I'm using ACCEPT="image/jpeg/image/png,image/gif" anyway, but I'm not relying on it. This is why I want to use uploadInfo() instead of just assuming the user uploaded the correct file type.


In reply to Re^2: CGI.pm: upload() succeeds, uploadInfo() fails by Llew_Llaw_Gyffes
in thread CGI.pm: upload() succeeds, uploadInfo() fails by Llew_Llaw_Gyffes

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.