[Xitami] File Uploads

Ewen McNeill xitami@lists.xitami.org
Fri, 18 Jan 2002 10:03:45 +1300


In message <009301c19f97$6df16820$3c01a8c0@GIA>, "Peter" writes:
>hmmm...  I wonder if the move_upload_file subroutine is part of the cgi.pm
>module.  Do you know?

No I don't think so (it's a PHP thing) -- but there are similar routines
in CGI.pm that work quite well.

As you noted in an earlier mesage, the main thing is that to read binary
files you'll have to tell Perl to access stdin in binary mode (there is
a function to do this).  Then it should work fine.  Although the CGI.pm
interface is easier -- just have a look through the CGI.pm documentation
for details on handling file uploads.

Ewen

-- 
Ewen McNeill, Technical Consultant, iMatix Corporation  www.imatix.com