From 4e5fde24ae9e310fe95a9bbb2b5751b1f0451508 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 28 Mar 2024 20:22:30 -0400 Subject: [PATCH] fix: preprocess-progress needs to just be passed the preprocess object --- app/components/lib/uppy.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/components/lib/uppy.ts b/app/components/lib/uppy.ts index 81e8211..4b85254 100644 --- a/app/components/lib/uppy.ts +++ b/app/components/lib/uppy.ts @@ -106,13 +106,9 @@ export function useUppy() { if (file.uploader === "tus") { const hashProgressCb = (event: HashProgressEvent) => { uppyInstance.current?.emit("preprocess-progress", file, { - uploadStarted: false, - bytesUploaded: 0, - preprocess: { mode: "determinate", message: "Hashing file...", value: Math.round((event.total / event.total) * 100), - }, }); }; const options = await sdk.protocols!()