[Xitami] File Uploads

Marcio Marchini xitami@lists.xitami.org
Thu, 17 Jan 2002 11:49:02 -0500


	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
>