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-added",
|
||||||
"file-removed",
|
"file-removed",
|
||||||
"files-added",
|
"files-added",
|
||||||
|
"preprocess-progress"
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export function useUppy() {
|
export function useUppy() {
|
||||||
|
@ -210,6 +211,7 @@ export function useUppy() {
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case "upload":
|
case "upload":
|
||||||
case "upload-progress":
|
case "upload-progress":
|
||||||
|
case "preprocess-progress":
|
||||||
setState("uploading");
|
setState("uploading");
|
||||||
break;
|
break;
|
||||||
case "upload-error":
|
case "upload-error":
|
||||||
|
|
Loading…
Reference in New Issue