Make binary upload possible for IE11

This commit is contained in:
Ilker Kulgu 2017-07-13 15:09:04 +02:00 committed by Luc Didry
parent 33adb4c607
commit c6cdf2354f
1 changed files with 6 additions and 2 deletions

View File

@ -174,8 +174,12 @@ function sliceAndUpload(randomkey, i, parts, j, delay, del_at_first_view, short)
fr.onloadend = function() {
var sl = $('#parts-'+window.fc);
// Get the binary result
var bin = fr.result;
// Get the binary result, different result in IE browsers (see default.html.ep line 27:48)
if (isIE == true){
var bin = fr.content;
} else {
var bin = fr.result;
}
// Transform it in base64
var b = window.btoa(bin);