note 81855 rejected from function.is-uploaded-file by ezyang
| From: | ezyang@php.net | Date: | Sun, 16 Mar 2008 19:55:18 +0000 |
| Subject: | note 81855 rejected from function.is-uploaded-file by ezyang | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137111@lists.php.net to get a copy of this message | ||
Note Submitter: dubi at il dot ibm dot com
----
The following code :
$uploadfile = $uploaddir . basename($_FILES['FileInfo']['name']);
if (move_uploaded_file($_FILES['FileInfo']['name'], $uploadfile))
fails to upload . Although $_FILES['FileInfo']['name'] holds the user entered
filename it fails the move_upload_file() .
If $_FILES['FileInfo']['tmp_name'] is used as first argument in
move_upload_file() , the function does not fail but it does not hold the correct file to upload
either.
Any advice how I can overcome this upload issue ?