note 87216 added to features.file-upload
| From: | rnagavel at yahoo dot com dot au | Date: | Tue, 25 Nov 2008 09:10:19 +0000 |
| Subject: | note 87216 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146902@lists.php.net to get a copy of this message | ||
If $_FILES is always empty, check the method of your form.
It should be POST. Default method of a form is GET.
<form action="myaction.php">
<input type="file" name"userfile">
</form>
File will not be uploaded as default method of the form is GET.
<form action="myaction.php" method="POST">
<input type="file" name"userfile">
</form>
Files will be uploaded and $_FILES will be populated.
----
Server IP: 66.207.199.35
Probable Submitter: 99.243.202.60
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- https://master.php.net/note/edit/87216
Del: integrated -- https://master.php.net/note/delete/87216/integrated
Del: useless -- https://master.php.net/note/delete/87216/useless
Del: bad code -- https://master.php.net/note/delete/87216/bad+code
Del: spam -- https://master.php.net/note/delete/87216/spam
Del: non-english -- https://master.php.net/note/delete/87216/non-english
Del: in docs -- https://master.php.net/note/delete/87216/in+docs
Del: other reasons-- https://master.php.net/note/delete/87216
Reject -- https://master.php.net/note/reject/87216
Search -- https://master.php.net/manage/user-notes.php