Zend Framework

Zend_Form_Element_File can not be included as optional fom element

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Not an Issue
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.7.3
  • Labels:
    None

Description

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.

Activity

Hide
Thomas Weidner added a comment -

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.

Show
Thomas Weidner added a comment - 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.
Hide
Daniel Thomas added a comment -

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?

Show
Daniel Thomas added a comment - 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?

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: