fix: add preprocess-progress event as uploading state

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

View File

@ -26,6 +26,7 @@ const LISTENING_EVENTS = [
"file-added",
"file-removed",
"files-added",
"preprocess-progress"
] as const;
export function useUppy() {
@ -210,6 +211,7 @@ export function useUppy() {
switch (event) {
case "upload":
case "upload-progress":
case "preprocess-progress":
setState("uploading");
break;
case "upload-error":