Scott R. Godin wrote: > script is at http://phpfi.com/78748 > > I followed the instructions in CGI.pm as best I could, and from what I > read the upload() function is supposed to return a filehandle ? (it > doesn't say whether this is a direct FH to the tempfile or not) > > I had dome some preliminary testing with one-liners and was pretty sure > this would work, but what I wind up with in the attachment is a file > containing the name of the file, not its actual contents. > > what did I do wrong? I can't figure it out. :/ >
Just because it is easy to overlook and fairly common, did you include the 'enctype' in the form tag? For instance, [form enctype="multipart/form-data" action="/cgi-bin/request" method="POST"] HTH, http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>