note 28279 added to features.file-upload
| From: | jeremy at supersloper dot net | Date: | Wed, 08 Jan 2003 08:29:18 +0000 |
| Subject: | note 28279 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41816@lists.php.net to get a copy of this message | ||
I'm getting this error...
Warning: Unable to create '/test/image.gif': No such file or directory in
/usr40/home/jwmeigs/public_html/test.php on line 33
here is my code, can anyone help ?
Thanks !
<?php
if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {
copy($_FILES['userfile']['tmp_name'],
text/$_FILES['userfile']['name']");
} else {
echo "Possible file upload attack. Filename: " .
$_FILES['userfile']['name'];
}
?>
--
http://www.php.net/manual/en/features.file-upload.php
http://master.php.net/manage/user-notes.php?action=edit+28279
http://master.php.net/manage/user-notes.php?action=delete+28279
http://master.php.net/manage/user-notes.php?action=reject+28279