ZF-4851: Problem with getFileInfo() in Zend_File_Transfer_Adapter_Abstract
Description
I'm use http://framework.zend.com/svn/framework/… revision:12282
This code is Error.
$form->addElement('file', 'logo', array(
'required' => true,
'validators' => array(
array('Count', true, 2),
array('Size', true, "100KB"),
array('Extension', true, 'jpg'),
array('MimeType',true,array('image/jpeg')),
array('ImageSize',true,array(0,0,340,480)),
),
'multiFile' => 1,
));
Render page. Error occured....
Error is [ Warning: "logo" not found by file transfer adapter in... ].
Why error occured?
So i edited Zend/File/Transfer/Adapter/Abstract.php :: getFileInfo()
public function getFileInfo($file = null) { return $this->_getFiles($file); }
↓ It changed.
public function getFileInfo($file = null) { return $this->_getFiles($file, false, true); }
The error did not happen.
please fix this problem.
Comments
Posted by Thomas Weidner (thomas) on 2008-11-07T06:24:59.000+0000
There was an error in multifile which has been solved one or two days after the release has been fixed.
It is solved in 1.7.
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:29.000+0000
Changing issues in preparation for the 1.7.0 release.