ZF-5821: isUploaded throws undocumented exception
Description
When using isUploaded() to check whether a file has been uploaded, rather than return false (as documented) if the file has not been uploaded, a Zend_File_Transfer_Exception is thrown. The Zend_File_Transfer_Exception' has the message "'file' not found by file transfer adapter".
I believe that the function should just return true or false if the specified file has not been uploaded.
The exception stems from the _getFiles() method.
Looks like it the $noexception parameter needs to be set to true.
The isUploaded() method also needs to test for empty return value from _getFiles() before looping through it. Actually, can't the isUploaded() just return (bool) _getFiles($files)?
Comments
Posted by Thomas Weidner (thomas) on 2009-02-18T03:23:20.000+0000
Not reproducable with trunk. Seems to be already fixed.