aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/dragNdrop.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js b/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js
index cfca7314..46cf6bac 100644
--- a/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js
+++ b/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js
@@ -436,13 +436,14 @@ function sign(file, connector, locale) {
var buffer = evt.target.result;
var uint8Array = new Uint8Array(buffer);
+ console.log("onload filereader before string convert");
+
+ var array_string = uint8ToString(uint8Array)
- var b64encoded = btoa(String.fromCharCode.apply(null, uint8Array));
-
- var result = uint8ToString(b64encoded);
-
+ console.log("onload filereader after string convert");
+ var b64encoded = btoa(array_string);
- continueFormCreation(result);
+ continueFormCreation(b64encoded);
};