ZF-4201: Zend_Validate_File_Size, used with only one param require the file to be of exact size
Description
In the doc, the example usage of Zend_Validate_File_Size says "->addValidator('Size', false, 102400) // limit to 100K" (http://framework.zend.com/manual/fr/…).
I andurstand this as limiting up to 100K not requiring the file to be exactly 100K, Am i wrong ?
By the way, the code of Zend_Validate_File_Size is requiring the file to match exactly the given size, line 110 : if (empty($max)) { $max = $min; }
In my opinion we need a code change to specify only the max limit or a change in the docs.
Comments
Posted by Thomas Weidner (thomas) on 2008-09-05T09:19:21.000+0000
The code reads:
since 11.August.
Posted by Thomas Weidner (thomas) on 2008-09-05T09:19:59.000+0000
Fixed in past with r10886