IE vs ajax PUT file upload (works in Chrome)

IE vs ajax PUT file upload (works in Chrome)

Hi :) 

The following works in Chrome but not in IE. Long story short: I'm trying to upload a binary file (used for firmware update) to a box running Lighttpd.

  1.    $.ajax("api/dupdate", {
  2.      method: "PUT",
  3.      contentType: "application/octet-stream",
  4.      processData: false,
  5.      data: dupdateFile,
  6.      success: function(data, status, jqxhr) {
  7.        console.log("OK!");
  8.      },
  9.      error: function(jqxhr, status) {
  10.        console.log("Error, status: " + status);
  11.      }
  12.    });

In IE when trying to upload the file I get a " XMLHttpRequest: Network Error 0x80030019, An error occurred during a seek operation)".

I've used Fiddler to take a closer look. When using IE it seems like there are two requests sent. 

First one comes back as 401 (see screenshot #1 below)

Second one (after having entered credentials in the browser popup) comes back with 408 (see screenshot #2 below) stating " The request body did not contain the specified number of bytes. Got 0, expected 22.763.520". It looks like the request body is empty in the second request. This only happens in IE - everything is perfect in Chrome. 

Am I missing something completely obvious here? Any suggestions would be greatly appreciated :) 


Screenshot #1





Screenshot #2