ID: 33885 Updated by: [EMAIL PROTECTED] Reported By: weseman at gmail dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: OpenBSD PHP Version: 4.3.11 New Comment:
Please report PEAR issues into the PEAR bug system: http://pear.php.net/bugs/ Previous Comments: ------------------------------------------------------------------------ [2005-07-27 15:38:18] weseman at gmail dot com Description: ------------ HTML_Quickform uses a default maximum upload filesize of 1megabyte, which is set through the private property _maxFileSize. IMO, it would be better to follow the filesize specified by php.ini, as this is the value that finally decides what size an upload can be. Reproduce code: --------------- Place this in the constructor: if (preg_match('/^([0-9]+)([a-zA-Z]*)$/', ini_get('upload_max_filesize'), $matches)) { // according to: // http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes // valid values are G, M or K, or no multiplier at all. switch (strtoupper($matches['2'])) { case 'G': $this->_maxFileSize = $matches['1'] * 1073741824; break; case 'M': $this->_maxFileSize = $matches['1'] * 1048576; break; case 'K': $this->_maxFileSize = $matches['1'] * 1024; break; default: $this->_maxFileSize = $matches['1']; } } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33885&edit=1