Q:

How to know file size in javascript?

How to know uploaded files size using javascript? I am uploading multiple files and I want to know each file size ? 

A:

Give it a try
$('#image').bind('change', function () {
  var size = (this.files[0].size / 1024 / 1024) + " MB";
  alert('Size of the file: ' + size);
});

