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-IsImage-return-File-image-png-is-no-image-application-octet-stream-detected-tp3514523p3514523.html
Sent from the Zend Framework mailing list archive at Nabble.com.

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


Reply via email to