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.
| [reply] [Watch: Dir/Any] |