Greg,
First:
You should always note the release or revision you are using. ;-)
To you original question:
File Elements do not have a content, label or other things as per HTTP.
Content would be seen as the file name, but this is a security issue. It
would also not be displayed by the client but presented in plain HTML and be
information for a potential attacker. Therefor any content will not be
rendered for the file element itself.
Regarding to append or prepend other things, is this a feature which has not
been asked for now. Please add a issue to jira and I will look at it.
Regarding Multifiles, these are displayed by the decorator as soon as you
call setMultiFile().
There is actually no way to seperate decorators which are initially to set
them fixed so they will not be overwritten later on.
The file decorator itself is attached by the file element with the
loadDefaultDecorators().
Of course, when you later on, set it to be ignored it will not be used.
Else there would be no way how you could add your own file decorator.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Greg Jones" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, October 15, 2008 11:14 AM
Subject: [fw-general] Form_Decorator_File issues with multiFile
Hi,
I'm trying to make use of the multiFile option for the Form_Element_File
component, but having a bit of trouble. In all my forms so far, I've used
array('Label', 'ViewHelper', 'Errors') with setElementDecorators() at the
end of adding elements to the form, and it's worked just fine (including
with individual type='file' elements), but with multiFile set, I still
just get the one input actually rendered. I did a bit of digging, and it
seems that the specific File decorator isn't being used, I just assumed
ViewHelper would work that out, but seemingly not. Firstly then, is there
anyway I can tell the form/element at the time of adding the multiFile
that I want to set some decorators, and not have them over-written by a
call to setElementDecorators later on?
Second, it seems that the File decorator is losing the content of any
other decorators its used alongside (Label and Errors, for example).
Looking at the code, it's only returning its own markup, and there's no
reference to $content after its passed in - should it not be doing the
append/prepend logic that the other decorators seem to?
Greg.