note 10502 added to Handling file uploads
| From: | gemini1 at gemini1consulting dot com | Date: | Mon, 08 Jan 2001 08:37:33 +0000 |
| Subject: | note 10502 added to Handling file uploads | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9467@lists.php.net to get a copy of this message | ||
Demo Form and Script with Source
http://www.gemini1consulting.com/tekhelp/upload.php
This had me going for a while !
PHP will automatically reject file sizes greater than the MAX_FILE_SIZE passed as a hidden variable.
Nowhere did I find this stated anywhere. Your form handler doesn't even have to consider it for
the file to be rejected and you won't know. So if you are having trouble , remove the <INPUT
TYPE="hidden" name="MAX_FILE_SIZE" value="whatever"> entirely from
your form. When you get it working, then you can add it in and see how it works.
http://www.php.net/manual/features.file-upload.php