加大文件上传超时时间

This commit is contained in:
Vinlic 2024-04-05 01:16:05 +08:00
parent 1b2b7927ee
commit 11a145924f

View File

@ -516,8 +516,8 @@ async function uploadFile(fileUrl: string, refreshToken: string) {
data: fileData,
// 100M限制
maxBodyLength: FILE_MAX_SIZE,
// 60秒超时
timeout: 60000,
// 120秒超时
timeout: 120000,
headers: {
'Content-Type': mimeType,
Authorization: `Bearer ${token}`,