File.type - MIME-тип файлу.
File.type;
File - об'єкт File.
type властивість об'єкта File яка містить MIME-тип файла. Властивість лише для читання.
var file = new File(["Текст"], "text.txt", {type: "text/plain"});
alert(file.type);
<input id="file_user" type="file">
var input=document.getElementById('file_user');
input.onchange=function(){
alert( this.files[0].type );
}