Hy,

the IsImage validator uses the mimetype detected from the file itself, not
the one which is send from the customer.
Otherwise someone could send you an file and say it's an image but instead
it's an exe file.

Thomas Weidner

Zend Framework Certified Engineer & I18N Team Leader
http://www.thomasweidner.com

-----Ursprüngliche Nachricht-----
Von: vbogoev [mailto:[email protected]] 
Gesendet: Mittwoch, 11. Mai 2011 14:20
An: [email protected]
Betreff: [fw-general] Zend_Validate_File_IsImage return "File 'image.png' is
no image, 'application/octet-stream' detected".

I try to use the Zend_Validate_File_IsImage, but when image is chosen,
validator returns next:

File 'image.png' is no image, 'application/octet-stream' detected.

(When i look through the $_FILES global array it detects 'image/png')

Anybody knows what's the solution of this problem? Adding some additional
extensions or something...

I am using PHP 5.3.6.

Also using imagick and fileinfo extension. 

I realized that in php 5.3.0 and above there are no MIME_MAGICK extension.
Functions are implemented in fileinfo. When I used php 5.2.8 this extension
resolved this problem, but now...

Linux hosting.

If you need any other question feel free to ask me!

Thanks!

--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Zend-Validate-File-IsIm
age-return-File-image-png-is-no-image-application-octet-stream-detected-tp35
14523p3514523.html
Sent from the Zend Framework mailing list archive at Nabble.com.

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]




--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to