note 59156 modified in features.file-upload by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:46:52 +0000 |
| Subject: | note 59156 modified in features.file-upload by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155175@lists.php.net to get a copy of this message | ||
-
Be carefull with setting max_file_size via
<?php 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:
<?php
$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
-
--was--
-
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
-
http://php.net/manual/en/features.file-upload.php