Having sent the below message I come to the question of do the
Zend_Validate_File_ classes actually allow custom messages? If not it really
should, looking through the code I see the validators are set in the
transfer adapter not with Zend_Form (-> elements) and at no point handles
messages?
Can you just confirm if this is the case?
Thanks
SiCo007 wrote:
>
> I am having a little problem using the file upload element. I believe it's
> because it doesn't follow the same pattern as most Form Elements by
> allowing you to pass the validators to the element in the options array.
>
> I create all my elements using this notation
> $this->addElement('file', 'image', array('validators' => array());
>
> However the file element overwrites this with it's own defaults which has
> just caused me hours of annoyance! Or have I just done something else
> wrong?!
>
-----
Simon
http://www.ajb007.co.uk/
--
View this message in context:
http://www.nabble.com/File-Element-Validators---Zend_Form-tp19397238p19399143.html
Sent from the Zend Framework mailing list archive at Nabble.com.