Hey!

I'm trying to upload some files using the Zend_File_Transfer, so I have this 
form:

<form id="test" name="test" action="/test/save" method="post" 
enctype="multipart/form-data">
<?= $this->formFile(
        "single_file"
    );
?>
<?= $this->formFile(
        "multiple_files[]"
    );
?>
</form>

So, multiple_files[] is an array of files, I create every input file using js, 
like gmail's attachments, so, in my action how to add validators just for 
multiple_files[] ? and validators just fomr single_file ? I mean I need to 
validate that single_file must be a gif image, and multiple_files must be just 
jpg images , how to set validators for a specific input file ?

Thx for any help.

Reply via email to