fix: add preprocess-progress event as uploading state
This commit is contained in:
parent
64b1a31a8f
commit
4b5fe20df3
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue