fix: preprocess-progress needs to just be passed the preprocess object

This commit is contained in:
Derrick Hammer 2024-03-28 20:22:30 -04:00
parent 4b5fe20df3
commit 4e5fde24ae
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 4 deletions

View File

@ -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!()