ZF-5164: Zend_Form_Elment_File::getValues() should check if the element have been uploaded

Issue Type: Improvement Created: 2008-12-05T06:53:42.000+0000 Last Updated: 2008-12-21T05:03:27.000+0000 Status: Resolved Fix version(s): - 1.7.2 (23/Dec/08)

Reporter: Laurent Melmoux (laurent melmoux) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: Attachments:


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 :\

<pre class="highlight">
if (!$this->isRequired() && !$this->isUploaded()) {
     return null;


Posted by Thomas Weidner (thomas) on 2008-12-05T12:06:17.000+0000

Fixed with r13042

Have you found an issue?

See the Overview section for more details.


© 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.