diff options
author | fschneider <florian.schneider@student.tugraz.at> | 2015-09-17 11:57:31 +0200 |
---|---|---|
committer | fschneider <florian.schneider@student.tugraz.at> | 2015-09-17 11:57:31 +0200 |
commit | 044e2e13fd0290e641a1d530e2f1c08d263077f1 (patch) | |
tree | 7324c3fdeb15208b0286904894d5e6b970c0db8a | |
parent | b38ebd5e730864f39b5cead7672cb870a9523cb1 (diff) | |
download | pdf-as-4-044e2e13fd0290e641a1d530e2f1c08d263077f1.tar.gz pdf-as-4-044e2e13fd0290e641a1d530e2f1c08d263077f1.tar.bz2 pdf-as-4-044e2e13fd0290e641a1d530e2f1c08d263077f1.zip |
Form Submit Problems
-rw-r--r-- | pdf-as-web/src/main/webapp/assets/js/dragNdrop.js | 11 |
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); }; |