-1

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

Martin Tournoij
  • 26,737
  • 24
  • 105
  • 146

1 Answers1

-1

Give it a try

$('#image').bind('change', function () {
  var size = (this.files[0].size / 1024 / 1024) + " MB";
  alert('Size of the file: ' + size);
});
Prabhu Easwar
  • 153
  • 1
  • 2
  • 10