Return to Snippet

Revision: 49787
at July 29, 2011 22:03 by yingyi


Initial Code
function checkFileSize() {
  if (typeof FileReader !== "undefined") {
    var size = document.getElementById('myfile').files[0].size;
    //do something with size
  }
}

Initial URL

                                

Initial Description

                                

Initial Title
Get filesize of file without uploading

Initial Tags
javascript, html5

Initial Language
JavaScript