Issues

ZF-10618: Zend_File_Transfer && Zend_Validate_File

Description

Validators for different files overriding each other.

For example I want to upload 2 files: pdf and an image.


$uploader = new Zend_File_Transfer_Adapter_Http();

$uploader->addValidator('Zend_Validate_File_Extension', false, array('pdf'), 'myfile1');

$uploader->addValidator('Zend_Validate_File_Extension', false, array('jpg'), 'myfile2');

$uploader->receive('myfile1');

$uploader->getMessages();//File 'myfile1' has a false extension

They both have last validator - jpg

Comments

svnvesion 23272

Assigned component and auto assigned to mantainer