|
|
@@ -223,10 +223,10 @@ function upload_handler() { |
|
|
|
else { |
|
|
|
var reader = new FileReader(); |
|
|
|
var data; |
|
|
|
reader.onloadend = function(e) { |
|
|
|
reader.onload = function(e) { |
|
|
|
$.post(conf.openapi + "/documents/" + temp.documentid + "/data", e.result, function(data) { |
|
|
|
console.log(data); |
|
|
|
}, file.type) |
|
|
|
}, file.obj.type) |
|
|
|
}; |
|
|
|
reader.readAsArrayBuffer(data); |
|
|
|
} |
|
|
@@ -244,7 +244,7 @@ function upload_status() { |
|
|
|
$(obj).children().css('width', "50%"); |
|
|
|
if ( file.progress==1) { |
|
|
|
if ( file.error != null ) { |
|
|
|
$(obj).children().html(file.name + ': ' + file.error); |
|
|
|
$(obj).children().html(file.obj.name + ': ' + file.error); |
|
|
|
$(obj).children().addClass('bg-danger'); |
|
|
|
$(obj).children().removeClass("progress-bar-animated"); |
|
|
|
$(obj).children().css('width', "100%"); |