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