ZF-5114: Zend_Form_Element_File can not be included as optional fom element

Issue Type: Bug Created: 2008-11-30T23:24:03.000+0000 Last Updated: 2008-12-01T00:26:58.000+0000 Status: Resolved Fix version(s): - 1.7.3 (19/Jan/09)

Reporter: Daniel Thomas (dpool) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

  • Zend_Form

Related issues: Attachments:


It seems that the Zend_Form_Element_File only works if an file is actually uploaded. If not validation of within Zend_File_Transfer_Adapter_Abstract throws an exception in the ->_getFiles() method, because it could not find any files related to the respective form element. The ->_getFiles() method provides a third argument which could be used to block the exception. This argument however is not used by the calling ->isValid() method.


Posted by Thomas Weidner (thomas) on 2008-11-30T23:30:54.000+0000

Have you verified with the latest release ? I am not able to reproduce this problem.

Please give your code to see the problem. I expect a handling problem.

Posted by Daniel Thomas (dpool) on 2008-11-30T23:43:12.000+0000

The problem seems to be the java-script form submission library used which dynamically changes the submission mode based on the form values given. I am really sorry to have trespassed on your time by posting a non-existant bug prematurely. Is there a way for me to delete this issue?

Have you found an issue?

See the Overview section for more details.


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

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