Secure photo uploading script?

Soldato
Joined
4 Jul 2004
Posts
2,647
Location
aberdeen
Hello,
In php, what is the best way to ensure that an uploaded file is an image. Is it ok just to check if it is
.gif
.jpg (/,jpeg)
.png

Or is there still any risk?

Cheers
 
Back
Top Bottom