I'm trying to ride the HTML5 wave but I'm facing a small issue. Before HTML5 we were checking the file size with flash but now the trend is to avoid using flash in web apps. Is there any way to check the file size in the client side using HTML5?
This works. Place it inside an event listener for when the input changes.
if (typeof FileReader !== "undefined") { var size = document.getElementById('myfile').files[0].size; // check file size }
1.4m articles
1.4m replys
5 comments
57.0k users