Commit 34656dfd by gaord Committed by GitHub

解决上传大文件超时的问题 (#606)

parent 7b5c3501
...@@ -9,7 +9,7 @@ export const postUploadFiles = ( ...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment