Make binary upload possible for IE11
This commit is contained in:
parent
33adb4c607
commit
c6cdf2354f
|
@ -174,8 +174,12 @@ function sliceAndUpload(randomkey, i, parts, j, delay, del_at_first_view, short)
|
||||||
fr.onloadend = function() {
|
fr.onloadend = function() {
|
||||||
var sl = $('#parts-'+window.fc);
|
var sl = $('#parts-'+window.fc);
|
||||||
|
|
||||||
// Get the binary result
|
// Get the binary result, different result in IE browsers (see default.html.ep line 27:48)
|
||||||
var bin = fr.result;
|
if (isIE == true){
|
||||||
|
var bin = fr.content;
|
||||||
|
} else {
|
||||||
|
var bin = fr.result;
|
||||||
|
}
|
||||||
|
|
||||||
// Transform it in base64
|
// Transform it in base64
|
||||||
var b = window.btoa(bin);
|
var b = window.btoa(bin);
|
||||||
|
|
Loading…
Reference in New Issue