Vladas, sometimes reading the manual helps:
" File elements in SubformsWhen you use file elements in subforms you must set unique names. For example, if you name a file element in subform1 "file", you must give any file element in subform2 a different name.
If there are 2 file elements with the same name, the second element is not be displayed or submitted.
Additionally, file elements are not rendered within the sub-form. So when you add a file element into a subform, then the element will be rendered within the main form.
" Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com----- Original Message ----- From: "Vladas Diržys" <[email protected]>
To: "fw-general" <[email protected]> Sent: Sunday, August 09, 2009 10:33 PM Subject: [fw-general] Problem with zend_form file element name using subform Hi, I have a form with 3 subforms. All the subforms have same elements. And one of the elements is file input. But I noticed that element name of the file input element has no array notation. Now I have following element names: id - element belongs to form subform1[catId] subform1[name] *image - element belongs to subform1* subform2[catId] subform2[name] *image - element belongs to subform2* In this case, upload of two files in a separete subforms, with same element name is not possible. What I expect is: id subform1[catId] subform1[name] *subform1[image]* subform2[catId] subform2[name] *subform2[image]* Is this wanted behavior or is this a bug? PS.: I've debuged a bit, and I could notice, that File Decorator doesn't use getFullyQualifiedName() method to create the element name. -- Regards, Vladas Diržys
<<note.gif>>
