Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.4
-
Fix Version/s: 1.8.0
-
Component/s: Zend_File_Transfer
-
Labels:None
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)?
Not reproducable with trunk.
Seems to be already fixed.