fix: preprocess-progress needs to just be passed the preprocess object
This commit is contained in:
parent
4b5fe20df3
commit
4e5fde24ae
|
@ -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!()
|
||||
|
|
Loading…
Reference in New Issue