mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
解决上传大文件超时的问题 (#606)
This commit is contained in:
@@ -9,7 +9,7 @@ export const postUploadFiles = (
|
|||||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void
|
onUploadProgress: (progressEvent: AxiosProgressEvent) => void
|
||||||
) =>
|
) =>
|
||||||
POST<string[]>('/common/file/upload', data, {
|
POST<string[]>('/common/file/upload', data, {
|
||||||
timeout: 48000,
|
timeout: 0,
|
||||||
onUploadProgress,
|
onUploadProgress,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data; charset=utf-8'
|
'Content-Type': 'multipart/form-data; charset=utf-8'
|
||||||
|
Reference in New Issue
Block a user