note 15453 added to features.file-upload
| From: | fo_dias at mail dot pt | Date: | Tue, 11 Sep 2001 16:23:56 +0000 |
| Subject: | note 15453 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17904@lists.php.net to get a copy of this message | ||
Don't you forget to save the tmp file rather then the file
...
$file_name = $HTTP_POST_FILES['file']['name'];
$file_temp = $HTTP_POST_FILES['file']['tmp_name'];
...
move_uploaded_file $file_temp, "/path_to_save/".$file_name);
http://www.php.net/manual/en/features.file-upload.php