title: Javascript - File uploading, readAsArrayBuffer?
body: <p>i'm currently trying to upload a file to my server. But i'm not really sure how to do this with <strong>readAsArrayBuffer</strong>. This works if I use <strong>readAsBinaryString</strong>.</p>
  
  <p>If i try to console.log it only returns <strong>'arrayBuffer: {}'.</strong>
  After I've tried to upload it, i can see inside post that  only a empty object was sent. If I use readAsBinaryString, I see a bunch of binary code.</p>
  
  <pre><code>var file = document.getElementById('my_file').files[0],
      reader = new FileReader();
  
      reader.onloadend = function(e){
          console.log(e.target.result);
          $scope.image = e.target.result;
      }
  
      reader.readAsArrayBuffer(file);
  </code></pre>
  
  <p>How can I see my file, so I know it's working when using readAsArrayBuffer? 
  If more code is needed let me know! Thanks.</p>