There\'s also an error in your if statement that checks the type/size, it will accept a gif image of any size. It should be:
if ( (($_FILES[\"file\"][\"type\"] == \"image/gif\") || ($_FILES[\"file\"][\"type\"] == \"image/jpeg\")) && ($_FILES[\"file\"][\"size\"] < 20000))