Issues

ZF-5821: isUploaded throws undocumented exception

Issue Type: Bug Created: 2009-02-17T21:48:08.000+0000 Last Updated: 2009-02-18T03:23:22.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Sebastian (sfjb) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: Attachments:

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts