I usually do it like
if ($filename_type != "image/pjpeg") {
echo "Wrong file type - upload only .jpg images";
} else {
echo "Process Upload";
}
Register globals needs to be on for this to work. If you have it off, you can also try
if ($_FILES['filename']['type'] != "image/pjpeg") {
echo "Wrong file type - upload only .jpg images";
} else {
echo "Process upload";
}
Be sure to change filename to whatever filename you're using. I'm not sure if all the underscores make a diff, for example:
$uploaded_file_a_type looks weird to me, but it should still work. I'd just prefer to name them upload1, upload2, or file1, file2, etc
Cgraz