From c6cdf2354f84b988d50c63e647d38d19631b4ba3 Mon Sep 17 00:00:00 2001 From: Ilker Kulgu Date: Jul 14 2017 10:58:09 +0000 Subject: Make binary upload possible for IE11 --- 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);