Uploading jpg works in IE but not FF
Posted: Mon Nov 20, 2006 2:31 pm
Hello, I have a script that works when you use IE, but when you use FF.
It just uploads a jpg and saves it in a gallery.
I check to see if it is a JPG. If the file is uploaded with FF, I can't get past this part.
Any thoughts?
Thanks!
JM
It just uploads a jpg and saves it in a gallery.
I check to see if it is a JPG. If the file is uploaded with FF, I can't get past this part.
Code: Select all
if ($_FILES['upload']['type'] == "image/pjpeg")
{
copy ($_FILES['upload']['tmp_name'], "images/uploads/".$_FILES['upload']['name'])
or die ("Could not copy, was it something evil?");Any thoughts?
Thanks!
JM