Well, this won't fix your problem (don't have a mac to test with (unfortunately), so I've never encountered that problem), but it will fix two others.
if ($GLOBALS[upFile_type] == "image/pjpeg") {
Rather than using $GLOBALS here, just use $FILES. Also, you need to put quotes around array keys if they are associative:
if ($_FILES['upFile']['type'] == 'image/pjpeg') {