note 37116 deleted from features.file-upload by aidan
| From: | aidan@php.net | Date: | Thu, 05 Aug 2004 07:48:12 +0000 |
| Subject: | note 37116 deleted from features.file-upload by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73982@lists.php.net to get a copy of this message | ||
Note Submitter: ashe@adomain.com
----
I just spend so many time finding this error in my code I would like to share it:
call me newbie, but I just copied the form displayed in this documentation:
<form enctype="multipart/form-data" action="_URL_"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
and forgot about the MAX_FILE_SIZE var for ever more...
unless you give this var a bigger value, no file will update, if you make
var_dump($_FILES);
in the update.php file (_URL_), you'll find that $_FILE[userfile][name] has a value but
$_FILE[userfile][tmp_name] and [size] is empty.
you shoult check too your php.ini to make shure you allow file uploads...
cheers!