A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix `Failed to execute 'decode' on 'TextDecoder'` error
Abdullah Atta6e6475672529
diff --git a/apps/web/src/interfaces/fs.js b/apps/web/src/interfaces/fs.jsindex 75f1f3372..9fefe7326 100644--- a/apps/web/src/interfaces/fs.js+++ b/apps/web/src/interfaces/fs.js@@ -569,6 +569,12 @@ class ChunkDistributor {}function parseS3Error(data) {+ if (!(data instanceof ArrayBuffer)) {+ return {+ Code: "UNKNOWN",+ Message: "An unknown error occured while uploading the attachment."+ };+ }const xml = new TextDecoder().decode(data);const doc = new DOMParser().parseFromString(xml, "text/xml");