title: S3 chunked uploads not (always) working in Chrome
body: <p>We recently started using fineuploader. Testing different browsers on different platforms all worked as expected. But test in Chrome (V31+) with chunking enabled failed (on most of our test files). We tested Chrome on Windows Vista, 7 and 8.1. All with the same result.</p>
  
  <p>We can reproduce the problem. Just upload a large file with Chrome (v30+) and it fails. With chunking false it will upload.</p>
  
  <p>When we try the S3 upload example @findeuploader.com we get the same results.</p>
  
  <p>We are using fineuploader 4.1.0</p>
  
  <p><b>Chrome javascript console output</b></p>
  
  <pre><code>XHR finished loading: "myServer/upload/sign".
  [FineUploader 4.1.0] Sending part 1 of 3 for file ID 0 - abc.mp4 (5242880 bytes)
  [FineUploader 4.1.0] Received response status 0 with body:
  [FineUploader 4.1.0] Received response status 0 with body:
  [FineUploader 4.1.0] Received response status 0 with body:
  [FineUploader 4.1.0] Upload attempt for file ID 0 to S3 is complete
  [FineUploader 4.1.0] 'error' is not a valid property on the server response. 
  Upload ready
  PUT myS3/abc.mp4?par… 2cYTjCx96l273jY.1gqFFifuLauX19eaQ.v_ixHtUIPcT7YK4jgv3Fwe12njmKYlP9FbRd9fx_  myS3/abc.mp4?partNumber…YTjCx96l273jY.1gqFFifuLauX19eaQ.v_ixHtUIPcT7YK4jgv3Fwe12njmKYlP9FbRd9fx_
  </code></pre>
  
  <p><b>Network console output</b></p>
  
  <pre><code>sign POST 200 application/json
  abc.mp4?uploads OPTIONS 200 text/plain
  abc.mp4?uploads POST 200 text/xml
  sign POST 200 application/json
  abc.mp4?partNumber=1&amp;uploadId=KtGZbUYtRz8qD1TpzRKq20wX8PM8wMb0ZIUAdmt_U5q2mZ3Y8z2UAR2cYTjCx96l273jY.1gqFFifuLauX19eaQ.v_ixHtUIPcT7YK4jgv3Fwe12njmKYlP9FbRd9fx_ OPTIONS 200 text/plain
  abc.mp4?partNumber=1&amp;uploadId=KtGZbUYtRz8qD1TpzRKq20wX8PM8wMb0ZIUAdmt_U5q2mZ3Y8z2UAR2cYTjCx96l273jY.1gqFFifuLauX19eaQ.v_ixHtUIPcT7YK4jgv3Fwe12njmKYlP9FbRd9fx_ PUT (failed) Pending Other
  </code></pre>
  
  <p><b>Headers from failing PUT</b></p>
  
  <pre><code>Request URL: myS3/abc.mp4?partNumber=1&amp;uploadId=uETmRvNAAROHscyF6rVikoJKb6ypHkB2yeepaddTLPVjSOwAu0hh2Hh9l59NQogvuB0uWGmUSy66bBh9SX6Vdnwttte8gEp2V4tozKcqBJfCz6uGqEu6EQUZc_yQklds
  
  Request Headers
  PUT myS3/abc.mp4?partNumber=1&amp;uploadId=uETmRvNAAROHscyF6rVikoJKb6ypHkB2yeepaddTLPVjSOwAu0hh2Hh9l59NQogvuB0uWGmUSy66bBh9SX6Vdnwttte8gEp2V4tozKcqBJfCz6uGqEu6EQUZc_yQklds HTTP/1.1
  Authorization: AWS myKey
  Referer: myServer/test3
  Origin:myServer
  x-amz-date: Tue, 03 Dec 2013 19:55:30 GMT
  User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
  Content-Type:
  
  Query String Parameters
  partNumber=1&amp;uploadId=uETmRvNAAROHscyF6rVikoJKb6ypHkB2yeepaddTLPVjSOwAu0hh2Hh9l59NQogvuB0uWGmUSy66bBh9SX6Vdnwttte8gEp2V4tozKcqBJfCz6uGqEu6EQUZc_yQklds
  </code></pre>
  
  <p><b>CORS Config</b></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"&gt;
  &lt;CORSRule&gt;
      &lt;AllowedOrigin&gt;*&lt;/AllowedOrigin&gt;
      &lt;AllowedMethod&gt;POST&lt;/AllowedMethod&gt;
      &lt;AllowedMethod&gt;PUT&lt;/AllowedMethod&gt;
      &lt;AllowedMethod&gt;DELETE&lt;/AllowedMethod&gt;
      &lt;MaxAgeSeconds&gt;3000&lt;/MaxAgeSeconds&gt;
      &lt;ExposeHeader&gt;ETag&lt;/ExposeHeader&gt;
      &lt;AllowedHeader&gt;*&lt;/AllowedHeader&gt;
  &lt;/CORSRule&gt;
  &lt;/CORSConfiguration&gt;
  </code></pre>
  
  <p>So the first PUT fails in Chrome but i have no clue why.</p>
  
  <p>Strange thing is, 2 of our (30+) test files (400M+ videos) upload without any problem. </p>
  
  <p>Anyone any ideas or maybe a clue where how to debug this issue?</p>