Re: Quickform maxFileSize request for change in behaviour

From: Date: Wed, 27 Jul 2005 10:40:53 +0000
Subject: Re: Quickform maxFileSize request for change in behaviour
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38966@lists.php.net to get a copy of this message
Yuri Weseman wrote: >Hi, > >Today I tried uploading a file using Quickform. It works, but only when your >files are smaller than 1MB. Quickform uses a hidden input field, named >MAX_FILE_SIZE. This prevents files larger than that size from being upoaded. >The value is hardcoded to 1 megabyte in Quickform.php. I'd like to suggest >to change this behaviour. I've added a patch file, that shows the change. >The patch file was created with diff on version 3.2.4pl1 (QuickForm.php,v >1.151). >In the constructor of Quickform.php I would add a check for the value of >upload_max_filesize. If it is correctly set, we can use this value to set >the default behaviour to use this value instead of 1MB. Hi, There is a setMaxFileSize() method for that already. Regards, Bertrand Mansion Mamasam

« previous php.pear.dev (#38966) next »