From c6cdf2354f84b988d50c63e647d38d19631b4ba3 Mon Sep 17 00:00:00 2001 From: Ilker Kulgu Date: Thu, 13 Jul 2017 15:09:04 +0200 Subject: [PATCH] Make binary upload possible for IE11 --- themes/default/public/js/lufi-up.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/default/public/js/lufi-up.js b/themes/default/public/js/lufi-up.js index 51c8903..3fd1909 100644 --- a/themes/default/public/js/lufi-up.js +++ b/themes/default/public/js/lufi-up.js @@ -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);