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