Re: FTP_PUT 0kb problem

From: Date: Sun, 12 Dec 2004 01:18:34 +0000
Subject: Re: FTP_PUT 0kb problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204076@lists.php.net to get a copy of this message
jpb wrote:
I am using the FTP_PUT command in conjunction with a form: <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="imagefile"> <input type="submit" value="Submit"> upload.php: Everything seems to work except the put statement. $upload = ftp_put($conn_id, $destination_file, $_POST[imagefile], FTP_BINARY); I am connecting to the server and it is replacing the old image file with a 0 kb file. Permissions are RWX across the board. Any ideas?
Read http://www.php.net/manual/en/features.file-upload.php information about uploaded file(s) is in $_FILES array and $_FILES['imagefile'] is an array

« previous php.general (#204076) next »