[Xitami] File Uploads
Peter
xitami@lists.xitami.org
Thu, 17 Jan 2002 13:42:07 -0700
hmmm... I wonder if the move_upload_file subroutine is part of the cgi.pm
module. Do you know?
Peter
----- Original Message -----
From: "Marcio Marchini" <mqm@magma.ca>
To: <xitami@lists.xitami.org>
Sent: Thursday, January 17, 2002 9:49 AM
Subject: RE: [Xitami] File Uploads
>
> This is something in PHP
>
>
> $filepath_on_client = $HTTP_POST_FILES["filepath_posted"]["name"];
> $filepath_on_server = $HTTP_POST_FILES["filepath_posted"]["tmp_name"];
> $filepath_size = $HTTP_POST_FILES["filepath_posted"]["size"];
> $filepath_type = $HTTP_POST_FILES["filepath_posted"]["type"];
> if (move_uploaded_file($filepath_on_server, $new_location)) {
> ...
> }
>
>
>
> marcio
>
>
>
> > -----Original Message-----
> > From: xitami-admin@lists.xitami.org
> > [mailto:xitami-admin@lists.xitami.org]On Behalf Of Peter
> > Sent: January 17, 2002 11:28 AM
> > To: xitami@lists.xitami.org
> > Subject: [Xitami] File Uploads
> >
> >
> > Hopefully someone can help.
> > I am having a problem with form uploads on the server side. I am fairly
> > confident that I have the form correct, but I cannot find where it is on
the
> > server. I see that the CONTENT_LENGTH enviroment variable tells me that
the
> > file got to the server, but where its location remains a mystery to me.
I
> > have tried reading in the information myself using the standard in
(STDIN)
> > but that will only work if the file is all text. I have tried load the
cgi
> > pipe files in xitami/temp but they do not seem to be there when I try to
> > load them. Does someone know?
> >
> > Peter Netterville
> >
> >
> >
> >
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>