diff --git a/src/api/tool/file.ts b/src/api/tool/file.ts index 25b468ba..a50d1cee 100644 --- a/src/api/tool/file.ts +++ b/src/api/tool/file.ts @@ -18,6 +18,7 @@ export async function downloadFile(filePath: string, range?: string) { method: 'get', headers: range ? { range } : {}, responseType: 'blob', + timeout: 60_000, }); } @@ -79,6 +80,7 @@ export function uploadFile(data: FormData) { method: 'post', data, dataType: 'form-data', + timeout: 180_000, }); } @@ -202,6 +204,7 @@ export function chunkUpload(data: FormData) { method: 'post', data, dataType: 'form-data', + timeout: 60_000, }); } @@ -241,7 +244,7 @@ export async function uploadFileToNE( neType, neId, }, - timeout: 30_000, + timeout: 60_000, }); return transferToNeFileRes; }