note 15777 added to features.file-upload
| From: | martin at humany dot com | Date: | Tue, 02 Oct 2001 20:11:42 +0000 |
| Subject: | note 15777 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18480@lists.php.net to get a copy of this message | ||
You MUST use enctype="multipart/form-data" in the <form> tag, otherwise the
<input type="file" name="userfile"> tag will work just like a
type="textbox" and you will only get the local path + filename in $userfile, and no file
uploaded. This caused me and my friend alot of headace, so i wanted to share ! :-)
--
http://www.php.net/manual/en/features.file-upload.php
http://master.php.net/manage/user-notes.php?action=edit+15777
http://master.php.net/manage/user-notes.php?action=delete+15777
http://master.php.net/manage/user-notes.php?action=reject+15777