madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

how to add image validation in zfdatagrid #897

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.my code
 $zendForm->addElement('file', 'FileName', array('label' => 'Upload Logo'));
        $zendForm->getElement('FileName')
                 ->setDestination('images/openlogo/')
                 ->setRequired(true);

2. I want to add validation so that user can only upload jpg,png images

What is the expected output? What do you see instead?

I want to shw error message if user upload any other document

Please insert the appropriate values;
Zend Framework version:
ZFDatgrid Version (Bvb_Grid::getVersion()):
Operating system:
PHP Version:
Database Server and version:
Source Adatapter:

Please provide any additional information below.

Original issue reported on code.google.com by prachiwaliaodesk on 24 Dec 2013 at 10:16