all uploaded files are put into: $_FILES so say your HTML upload form input is named: userfile
you could check the mime type using:
$_FILES['userfile']['type']
that would return e.g. image/jpeg
or you can use getimagesize e.g.
list($width, $height, $type, $attr) = getimagesize($_FILES['userfile']['tmp_name']);
removing letter from a file name should be pretty easy with str_replace e.g.
$filename = str_replace(array("*","&","£",""),"",$filename);