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
fix: incorrect chunk calculation on upload
thecodrrf252edbeb857
diff --git a/apps/web/src/interfaces/fs.js b/apps/web/src/interfaces/fs.jsindex 9b2f4667b..751591d94 100644--- a/apps/web/src/interfaces/fs.js+++ b/apps/web/src/interfaces/fs.js@@ -207,7 +207,10 @@ async function uploadFile(filename, requestOptions) {}for (let i = uploadedChunks.length; i < TOTAL_PARTS; ++i) {- const blob = await fileHandle.readChunks(i, UPLOAD_PART_REQUIRED_CHUNKS);+ const blob = await fileHandle.readChunks(+ i * UPLOAD_PART_REQUIRED_CHUNKS,+ UPLOAD_PART_REQUIRED_CHUNKS+ );const url = parts[i];const response = await axios.request({url,