fix: 文件上传接口超时60s

This commit is contained in:
TsMask
2024-05-14 19:13:21 +08:00
parent 7ad8c1706e
commit 26289b7787

View File

@@ -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;
}