Devi fare un controllo in php sul MIME Type. Lì non dovresti sbagliarti.