@@ -255,7 +255,9 @@ function upload_read_event(e) { | |||
$.ajax({ | |||
type: 'POST', | |||
url: conf.openapi + "/documents/" + temp.documentid + "/data", | |||
data: e.target.result, | |||
contentType: temp.upload[e.data].obj.type, | |||
context: e.data, | |||
xhr: function() | |||
{ | |||
@@ -268,8 +270,8 @@ function upload_read_event(e) { | |||
}, false); | |||
return xhr; | |||
}, | |||
success: function(data){ | |||
console.log("upload_complete",data); | |||
success: function(data, status, xhr){ | |||
console.log("upload_complete",data, status, xhr); | |||
} | |||
}); | |||