Define the mimetypes according to the manual using setMimeType() or
addMimeType().
Note that this validators use the fileinfo extension or as fallback the
mimetype extension.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com----- Original Message -----
From: "Raavi Raaj" <
[hidden email]>
To: <
[hidden email]>
Sent: Sunday, February 15, 2009 8:03 AM
Subject: [fw-core] File upload MimeType
> Hello,
>
> I have a single file upload element where I would like to accept only
> images
> of "image/jpeg, image/pjpeg"
> How may I specify the MimeType or IsImage validotor to ONLY accept the
> above
> mime types.
>
> -R
>
> P.S. I tried using the above validators but they always returned an error
> The
> mimetype of file XXX.XXX' has not been detected
>