/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function checkFileSize() { if (typeof FileReader !== "undefined") { var size = document.getElementById('myfile').files[0].size; //do something with size } }