Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.14

Bug #12014 No Validation for a group of uploaded files
Submitted: 2007-09-09 13:33 UTC Modified: 2007-10-05 15:08 UTC
From: tvlgiao Assigned: avb
Status: Closed Package: HTML_QuickForm (version CVS)
PHP Version: 5.2.1 OS: Windows XP
Roadmaps: 3.2.10    
Subscription  


 [2007-09-09 13:33 UTC] tvlgiao (Giao Trinh)
Description: ------------ @version CVS: $Id: QuickForm.php,v 1.163 2007/05/29 18:34:36 avb Exp $ please check the sample code below, the validation doesn't work at all! it seems to relate to the patch of bug #3501. Test script: --------------- $qf->addGroup(array( $qf->createElement('file', '', ''), $qf->createElement('file', '', '') ), 'pic', "Picture: "); $qf->addGroupRule('pic', "Image size must be larger than 2M bytes", 'maxfilesize', 2*1024*1024); //$qf->addRule('pic', "Image size must be larger than 2M bytes", 'maxfilesize', 2*1024*1024);

Comments

 [2007-10-05 15:08 UTC] avb (Alexey Borzov)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. -- Validation on file uploads will only be skipped if upload's status is UPLOAD_ERR_NO_FILE