note 29157 added to features.file-upload
| From: | Augusto at rack1 dot php dot net | Date: | Tue, 04 Feb 2003 16:37:41 +0000 |
| Subject: | note 29157 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43402@lists.php.net to get a copy of this message | ||
In the file upload form, the name of the field must be "userfile" or it will not work.
To copy the file to the same directory where the script is you can use:
move_uploaded_file($_FILES['userfile']['tmp_name'],
dirname($_SERVER['PATH_TRANSLATED']).
"/".$_FILES['userfile']['name']);
--
http://www.php.net/manual/en/features.file-upload.php
http://master.php.net/manage/user-notes.php?action=edit+29157
http://master.php.net/manage/user-notes.php?action=delete+29157
http://master.php.net/manage/user-notes.php?action=reject+29157