note 50154 added to features.file-upload
| From: | DickTater at osu1 dot php dot net | Date: | Sun, 20 Feb 2005 02:31:10 +0000 |
| Subject: | note 50154 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85258@lists.php.net to get a copy of this message | ||
I am very new to php and as of five minutes ago I am new to using php for file uploads...
When I plug in all the stuff that was shown, I get this:
____________________________________________________
Warning: move_uploaded_file(/site/template/images/random/milton.gif): failed to open stream: No
such file or directory in /home/legendar/public_html/site/upload.php on line 9
Warning: move_uploaded_file(): Unable to move '/tmp/phpZvszZ9' to
'/site/template/images/random/milton.gif' in /home/legendar/public_html/site/upload.php on
line 9
Possible file upload attack!
Here is some more debugging info:Array
(
[userfile] => Array
(
[name] => milton.gif
[type] => image/x-png
[tmp_name] => /tmp/phpZvszZ9
[error] => 0
[size] => 6110
)
)
____________________________________________________
Can someone tell me what I did wrong?
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50154
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50154&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50154&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50154&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50154&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50154&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50154&report=yes
Search -- http://master.php.net/manage/user-notes.php