note 59156 added to features.file-upload
| From: | djot at hotmail dot com | Date: | Sun, 27 Nov 2005 22:02:27 +0000 |
| Subject: | note 59156 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99211@lists.php.net to get a copy of this message | ||
-
Be carefull with setting max_file_size via
ini_get('upload_max_filesize');
ini_get might return values like "2M" which will result in non working uploads.
This was the "no no" in my case:
$form = '<input type="hidden" name="MAX_FILE_SIZE"
value=".ini_get('upload_max_filesize')." />';
Files were uploaded to the server, but than there was not any upload information, not even an error
message. $_FILES was completly empty.
djot
-
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59156
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59156&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59156&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59156&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59156&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59156&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59156&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59156&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59156&report=yes
Search -- http://master.php.net/manage/user-notes.php