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