note 98543 rejected from features.file-upload.post-method by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Jun 2010 15:20:23 +0000 |
| Subject: | note 98543 rejected from features.file-upload.post-method by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170452@lists.php.net to get a copy of this message | ||
Note Submitter: taishi_08 at yahoo dot com
----
i was trying to upload a new picture in my profile but i am unable to do so...here is the code.
$folder="picture/";
$target_path=$folder.($_FILES['photo']['name']);
if(move_uploaded_file($_FILES['photo']['tmp_name'],$target_path))
$message="The file".($_FILES['photo']['name'])." has been
uploaded ";
else
$message="Error ";
i am alway geting an "Error" message....Can anyone help???
it was working fine for the new photo.