-- Marcin Stefaniak
I'm trying to validate file upload with Zend_Filter_Input. I've created
my own class, which implements Zend_Validate_Interface, for file size
validating. My isValid() method is simple comparing file size
$_FILES['myfile']['size'] with assumed value. The problem is that
Zend_Filter_Input iterates all arrays he finds in input array, so in my
case he will make my test on all items he will find in $_FILES['myfile']
array - $_FILES['myfile']['tmp_name'], $_FILES['myfile']['name'],
$_FILES['myfile']['type'] and so on. And I want to check only
$_FILES['myfile']['size'] value. Is there a solution, which let me pass
full $_FILES['myfile'] array to my validate class? I know I can use only
validate class to make this test, but I'd like to use Zend_Filter_Input.
- [fw-general] Zend_Filter_Input and $_FILES Marcin Stefaniak
- RE: [fw-general] Zend_Filter_Input and $_FILES Bill Karwin
