加大文件上传超时时间

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, data: fileData,
// 100M限制 // 100M限制
maxBodyLength: FILE_MAX_SIZE, maxBodyLength: FILE_MAX_SIZE,
// 60秒超时 // 120秒超时
timeout: 60000, timeout: 120000,
headers: { headers: {
'Content-Type': mimeType, 'Content-Type': mimeType,
Authorization: `Bearer ${token}`, Authorization: `Bearer ${token}`,