TagSpaces is an offline, open source, document manager with tagging support
adding link for improving the binary saving
uggrock1456115f3ed0
diff --git a/data/web/web.api.js b/data/web/web.api.jsindex fa0b9e956..e7acfb9b4 100644--- a/data/web/web.api.js+++ b/data/web/web.api.js@@ -188,7 +188,19 @@ define(function(require, exports, module) {var saveBinaryFile = function(filePath,content) {console.log("Saving binary file: "+filePath); //+" content: "+content);+ /*+ // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data+ var myArray = new ArrayBuffer(512);+ var longInt8View = new Uint8Array(myArray);+ for (var i=0; i< longInt8View.length; i++) {+ longInt8View[i] = i % 255;+ }++ var xhr = new XMLHttpRequest;+ xhr.open("POST", url, false);+ xhr.send(myArray);+ */var isNewFile = false;davClient.propfind( encodeURI(filePath), function( status, data ) {console.log("Check file exists: Status / Content: "+status+" / "+data);