I am pretty sure that is_valid() will catch this. Is worth testing though

On 8/6/09, ashoms0a <[email protected]> wrote:
>
> Hi there,
>
> I am just wondering how to verify that a given file is a valid image or not.
> I guess checking only the file extension & MIME type is not enough. What if
> someone rename for example a file from evil.php to something like
> flower.gif. Will this pass the validations? I just want to prevent such
> thing.
>
> Any help is highly appreciated.
> --
> View this message in context:
> http://www.nabble.com/Image-Uplaod-Validation-Question-tp24853528p24853528.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>

-- 
Sent from my mobile device

Shaun J. Farrell
Washington, DC
(202) 713-5241
www.farrelley.com

Reply via email to