title: FileReader error : Cannot read property 'size' of undefined
body: <p>Good Day,</p>
  
  <p>I have this code:</p>
  
  <pre><code>function loadFile() {
   var fileToLoad = document.getElementById("loadMe").files[0];
   var fileStart = 0;
   var fileEnd = fileToLoad.size - 1;
   var fileReader = new FileReader();
   fileReader.onload = function(fileLoadedEvent) {
      var textFromFileLoaded = fileLoadedEvent.target.result;
      var string = textFromFileLoaded.split('&amp;');
      pleaseDoSomethingWithTheContentOfTheFile(textFromFileLoaded);
   };
  fileReader.readAsText(fileToLoad, "UTF-8");
  }
  </code></pre>
  
  <p>I have an error : </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'size' of undefined
        at loadFile</p>
  </blockquote>
  
  <p>According to <a href="https://stackoverflow.com/questions/29113884/uncaught-typeerror-cannot-read-property-size-of-undefined">this post</a> there is no index [0]... But when I remove that, I still have the same error. Is this something coming from this code, or does it look good ?
  Thanks in advance! :)</p>