How to know uploaded files size using javascript? I am uploading multiple files and I want to know each file size ?
Asked
Active
Viewed 78 times
-1
-
possible duplicate of [getting file size in javascript](http://stackoverflow.com/questions/2966076/getting-file-size-in-javascript) – Martin Tournoij Jul 16 '14 at 07:32
-
Also: http://stackoverflow.com/questions/3717793/javascript-file-upload-size-validation – Martin Tournoij Jul 16 '14 at 07:32
1 Answers
-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