title: HTML5 File API: FileReader.readAsText() returns "undefined"
body: <p>I use Chrome 12 on Mac OS X and I've included jQuery 1.6.1 within the document.</p>
  
  <p>I try to read the contents of a file as text and save it in a data-object with the following function:</p>
  
  <pre><code>this.upload = function(file) {
      console.log('FileHandler.upload called with ' + file.name + '.');
      console.log(file);
      console.log(this.reader);
  
      data = {
          content: this.reader.readAsText(file)
      }
  
      console.log('Content: ' + data.content);
  }
  </code></pre>
  
  <p>"file" seams to be a valid file-object and "this.reader" is a fresh instance of type FileReader. This code creates the following console output:</p>
  
  <p><a href="http://cl.ly/1Y2b383G2F272x1m1P0N" rel="noreferrer">http://cl.ly/1Y2b383G2F272x1m1P0N</a></p>
  
  <p><img src="https://i.stack.imgur.com/25tQT.png" alt="enter image description here"></p>