Zend_Form - The mimetype of file 'foto.jpg' could not be detected
Posted
by vian
on Stack Overflow
See other posts from Stack Overflow
or by vian
Published on 2010-03-26T19:50:23Z
Indexed on
2010/03/26
19:53 UTC
Read the original article
Hit count: 464
I have a Zend_Form with file element like this:
->addElement('file', 'image', array(
'required' => false,
'label' => 'Venue Image',
'validators' => array(
array('IsImage', false),
array('Size', false, '2097152'),
array('Upload', false),
),
))
And when I'm using localhost the image is uploaded successfully. But when I move to my hosting the validation error shows for image field. The mimetype of file 'foto.jpg' could not be detected. What can be the reason of this?
© Stack Overflow or respective owner