2009年3月26日星期四

Re: [fw-core] Zend/File/Transfer/Adapter/Abstract.php:589

Still an issue in 1.7.7 --- I work around with:

if( !isset($_FILES['foofile']) && ($element =
$this->_form->getElement('foofile')) )
{
$element->clearValidators();
}

... else isValid() will emit errors on the Zend_Form_Element_File:


Notice: Undefined index: tmp_name in Zend/File/Transfer/Adapter/Abstract.php
on line 589
Notice: Undefined index: tmp_name in Zend/File/Transfer/Adapter/Abstract.php
on line 589
Notice: Undefined index: name in Zend/Validate/File/Size.php on line 398
Notice: Undefined index: tmp_name in Zend/File/Transfer/Adapter/Abstract.php
on line 589
Notice: Undefined index: name in Zend/Validate/File/Extension.php on line
228

--
View this message in context: http://www.nabble.com/Zend-File-Transfer-Adapter-Abstract.php%3A589-tp22722502p22724361.html
Sent from the Zend Core mailing list archive at Nabble.com.

没有评论: