fix(frontend): resolve TS syntax errors from upload cancellation feature
Some checks failed
Automated Container Build / build-and-push (push) Failing after 15s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 15s
This commit is contained in:
parent
91fc088389
commit
bf9db781dc
2 changed files with 3 additions and 3 deletions
|
|
@ -240,7 +240,7 @@ class ApiClient {
|
|||
return res.json();
|
||||
}
|
||||
|
||||
upload(file: File, destPath: string, options?: { onProgress?: (percent: number) => void, overwrite?: boolean }): Promise<void> {
|
||||
upload(file: File, destPath: string, options?: { onProgress?: (percent: number) => void, overwrite?: boolean, signal?: AbortSignal }): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const upload = new tus.Upload(file, {
|
||||
endpoint: `${API_BASE}/api/tus/`,
|
||||
|
|
|
|||
Reference in a new issue