title: XMLHttpRequest + FormData file upload not working in Chrome with "large" files
body: <p>I've added a file upload utility for a internal application at my company. It works fine for all the folks that are in an office with fast internet. It also works for users who prefer Internet Explorer and it even works when the files are very small for users who use Chrome. It doesn't work at all with the file is larger than 50k AND the browser is Chrome AND the connection is slow. Files that are 10k-20k seem to work fine.</p>
  
  <p>After pressing upload (by a user in the not working group) the process is kicked and after 2 mins the network tab (in Chrome) has a status of (failed) net::err_Unexpected. The Response tab says "Failed to load Response Data". There are no server messages.</p>
  
  <p>I've tested all different file sizes (up to 5000k) in Internet Explorer and they seem to work fine.</p>
  
  <pre><code>function uploadFile(file, url){
      var xhr = new XMLHttpRequest();
      var fd = new FormData();
      xhr.open("POST", url, true);
      xhr.onreadystatechange = function () {
          if (xhr.readyState === 4 &amp;&amp; xhr.status === 200) {
              numQueuedFilesCount++;
              // Every thing ok, file uploaded
              updateAttachmentList();
          } else if (xhr.readyState == 4) {
              // with some error
              console.log(xhr.responseText); // handle response.
          }
      };
      fd.append("uploadfile", file);
      xhr.send(fd);
  }
  </code></pre>