The addValidator are missing the second paramater which should be false in
this case.
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidator('Size', false, '250kB')
->addValidator('Count', false, 5)
->addValidator('FilesSize', false, '1MB')
->addValidator('Extension', false, 'gif, jpg, png')
->addValidator('ImageSize', false, array(10, 10, 1024, 768))
->setDestination('C:/uploads');
if (!$upload->isValid()) {
print_r($upload->getMessages());
die();
}
try {
$upload->receive();
} catch (Zend_File_Transfer_Exception $e) {
$e->getMessage();
}
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Zend-File-Transfer-Fatal-error-tp655083p3397455.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]