jamiecottonuk
Technical User
Hi all,
I know how to check to see what a filenames extension is and to check to see if its valid.
The problem comes when a filenames extension is valid, but it may still contain harmful information. Imagine a scenario where a user creates a virus and renames it to photo.gif. This will get past the file extension validation.
How do I check to see if the file is a valid image or not
I know how to check to see what a filenames extension is and to check to see if its valid.
The problem comes when a filenames extension is valid, but it may still contain harmful information. Imagine a scenario where a user creates a virus and renames it to photo.gif. This will get past the file extension validation.
How do I check to see if the file is a valid image or not