helpersatan adlı üyeden alıntı: mesajı görüntüle
$fileType=$_FILES['dosya']['type'];
switch($fileType){
    case "image/jpeg"            :$typeResult="A";
    break;
    case "image/gif"            :$typeResult="B";
    break;
    case "image/png"            :$typeResult="C";
    break;
    case "application/pdf"        :$typeResult="D";
    break;
    case "application/msword"    :$typeResult="E";
    break;
    case "text/plain"            :$typeResult="F";
    break;    
    default                        :$typeResult="hata";
//php ile sadece bu dosya tipleriyse değer döndürüyordum bunlardan biri değilse hata olarak dönüyor sende bu şekilde yapabilirsin
}

Eğer sadece bu kontrolü yapıyorsanız, yaptığınız kontrol aşılabilir...

http://www.scanit.be/uploads/php-file-upload.pdf Sayfa 6-7