ZF-5164: Zend_Form_Elment_File::getValues() should check if the element have been uploaded
Description
If the file element is set as not required and in the case it haven't been uploaded, Zend_Form_Elment_File::getValues( )return the last directory name instead of null. On my debian box tmp is returned.
\
Possible fix :\
if (!$this->isRequired() && !$this->isUploaded()) {
return null;
}
Comments
Posted by Thomas Weidner (thomas) on 2008-12-05T12:06:17.000+0000
Fixed with r13042