From The Blog

HTML5 Javascript: get file input upload size locally

28 October 2013, in

if (typeof FileReader !== "undefined") {
var size = document.getElementById('upload_file').files[0].size;
size = Math.round(size / 1024);
console.log(size+' KB');
}



Post a Comment