Updated the upload.php, moved some $_POST and $_GET globals around