if (is_uploaded_file($fobject)){
if (($_FILES['fobject']['type'] != ('image/jpeg')) && ($_FILES['fobject']['type'] != ('image/jpg')) && ($_FILES['fobject']['type'] != ('image/gif')) && ($_FILES['fobject']['type'] != ('image/x-xbitmap'))) {
echo "Invalid file type. Only acceptable file types are jpeg, jpg, gif, and bmp.";
exit;
}
}
Every time I upload it says it is not a vaild file type. The form input for the upload is this...
<form name="myform" enctype="multipart/form-data" method="post" action="script.php">
<input type="file" name="fobject" size="55"></b><br><br>
<input name="go" type="submit" value="UPLOAD">
I don't have to change "type" to anything, right???