Hello,

I am using a form to upload a file which works great (with dojo iframe) and
I would like to add dojoType to the file element, but I am unable to do so.

This is my code:

$this->addElement('File', 'file', 
                array(
                'dojoType'              => 'dojox.form.FileInput',
                'validators'    => array(
                                'Size'  => array('min' => 20, 'max' => '1MB'),  
                                
                                array('validator' => 'Extension', 'options' => 
'png,gif,jpg,jpeg'),
                                array('validator' => 'MaxUploadImage')          
                                
                                ),
                'destination'   => $directory_name,
                'required'              => true,
                'decorators'    => $this->fileDecorators,
                ));

Is there an easy way of doing it without creating a custom Helper class?

Thanks,

Antonis
-- 
View this message in context: 
http://www.nabble.com/passing-dojoType-to-the-File-element-tp23331266p23331266.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to