in reply to uploading via CGI [SOLVED]

You need to use enctype="multipart/form-data" on your form. Files can't be sent using the default encoding, application/x-www-form-urlencoded

contrary to the CPAN documentation, this does not have a path attached.

I don't know where you see that. For at least five years, CGI has been saying:

Different browsers will return slightly different things for the name. Some browsers return the filename only. Others return the full path to the file, using the path conventions of the user's machine. Regardless, the name returned is always the name of the file on the user's machine, and is unrelated to the name of the temporary file that CGI.pm creates during upload spooling (see below).

Replies are listed 'Best First'.
Re^2: uploading via CGI
by halfcountplus (Hermit) on Jul 17, 2009 at 18:47 UTC
    thanks ikegami, if I hadn't finally noticed that in the W3C docs you would have saved me some more grunting and hammering on things ;)

    "I don't know where you see that. For at least five years, CGI has been saying:"
    True. I was flipping back and forth between that and this:
    http://www.perlfect.com/articles/upload.shtml
    Silly me...all apologies to Mr. Stein.

      It's also stated in CGI's docs:

      In order to take full advantage of this you must use the new multipart encoding scheme for the form

      The word "full" should be removed, but the emphasis is in the original.