note 38294 added to features.file-upload
| From: | Peter at rn2 dot php dot net | Date: | Mon, 15 Dec 2003 21:43:22 +0000 |
| Subject: | note 38294 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62008@lists.php.net to get a copy of this message | ||
Just a short note.. I hope it helps somebody. I was making this upload-form for the first time and
spent a lot of time getting it to work. The $_FILES array stayed empty..
Also the form 'enctype' value is very importand!
<form enctype="multipart/form-data" action="_URL_"
method="post">
Maybe it is wrong, but in normal forms I never used that 'enctype'.. But the file-upload
won't work unless you specify it. It is mentioned in the example on this page.. but if you just
take some code and put it in you're own existing form (like I did), you can easily overlook
this.
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38294
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38294&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38294&report=yes
Search -- http://master.php.net/manage/user-notes.php