I'm using the following portion of a conditional statement to validate valid image types. I'm uploading the file to my server.
I'm using this for gif's and it works great:
but if I use this for jpeg's, it doesn't work:
Why is the second one failing? I know I'm uploading a valid jpeg, but it doesn't get past this line. odd.
Thanks and best regards,
Harold
***You can't change your past, but you can change your future***
I'm using this for gif's and it works great:
Code:
if (($_FILES["file"]["type"] == "image/gif"))
but if I use this for jpeg's, it doesn't work:
Code:
if (($_FILES["file"]["type"] == "image/jpeg"))
Why is the second one failing? I know I'm uploading a valid jpeg, but it doesn't get past this line. odd.
Thanks and best regards,
Harold
***You can't change your past, but you can change your future***