Musa's response worked great. Setting the contentType to false did submit the form data correctly. THANKS!
Here is the ajax call that worked:
$.ajax({
url:getFileSubmitUrl(),
data:data,
cache:false,
processData:false,
contentType:false,
type:'POST',
success:function (data, status, req) {
handleResults(req);
},
error:function (req, status, error) {
handleResults(req);
}
});
I also found that this code also worked:
var oReq = new XMLHttpRequest();
oReq.open("POST", getFileSubmitUrl());
oReq.addEventListener("error", transferComplete);
oReq.addEventListener("load", transferComplete);
oReq.addEventListener("abort", transferComplete);
oReq.send(data);
}
function transferComplete(evt) {
handleResults(evt.target);
}