HI
I am having some trouble with limiting the images that can be uploaded to ONLY GIF/JPEG/JPG
The problem is it will allow any file type to be uploaded, and dosnt limit it to just these.
Here is the code I am using to test for image type:
if ($FILES['imagefile']['type'] == "image/gif" OR "image/jpeg" OR "image/jpg"){
//if ($FILES['imagefile']['type'] == "image/gif"){
copy ($FILES['imagefile']['tmp_name'], "images/upload/".$FILES['imagefile']['name'])
or die ("Could not copy");
Thanks