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 incorrect attachment upload progress
Abdullah Atta0ad382aced5d
diff --git a/apps/web/src/interfaces/fs.ts b/apps/web/src/interfaces/fs.tsindex 5e8c2cc0a..cfb3c50ca 100644--- a/apps/web/src/interfaces/fs.ts+++ b/apps/web/src/interfaces/fs.ts@@ -371,7 +371,7 @@ async function multiPartUploadFile(const onUploadProgress = (ev: AxiosProgressEvent) => {reportProgress({- total: fileHandle.file.size + ABYTES,+ total: fileHandle.file.size + ABYTES * TOTAL_PARTS,loaded: uploadedBytes + ev.loaded},{@@ -414,7 +414,7 @@ async function multiPartUploadFile(await fileHandle.addAdditionalData("uploadedChunks", uploadedChunks);await fileHandle.addAdditionalData("uploadedBytes", uploadedBytes);- onUploadProgress({ bytes: 0, loaded: blob.size });+ onUploadProgress({ bytes: 0, loaded: 0 });}await axios