Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: update progress immediately on download

thecodrr170aeada1ea4
diff --git a/apps/web/src/interfaces/fs.js b/apps/web/src/interfaces/fs.js
index f3c5c7508..0737eabe0 100644
--- a/apps/web/src/interfaces/fs.js
+++ b/apps/web/src/interfaces/fs.js
@@ -272,6 +272,11 @@ async function downloadFile(filename, requestOptions) {
if (await streamablefs.exists(filename)) return true;
try {
+ reportProgress(
+ { total: 100, loaded: 0 },
+ { type: "download", hash: filename }
+ );
+
const signedUrlResponse = await axios.get(url, {
headers,
responseType: "text",