mirror of
https://github.com/labring/FastGPT.git
synced 2026-01-18 05:01:48 +08:00
fix: longer timeout (#6012)
This commit is contained in:
@@ -134,7 +134,8 @@ const FileSelector = ({
|
||||
}
|
||||
});
|
||||
handleChangeFiles(files);
|
||||
}
|
||||
},
|
||||
timeout: 5 * 60 * 1000 // 5 minutes
|
||||
});
|
||||
const previewUrl = await getPresignedChatFileGetUrl({
|
||||
key: fields.key,
|
||||
|
||||
@@ -196,7 +196,8 @@ export const useFileUpload = (props: UseFileUploadOptions) => {
|
||||
const percent = Math.round((e.loaded / e.total) * 100);
|
||||
copyFile.process = percent;
|
||||
updateFiles(fileIndex, copyFile);
|
||||
}
|
||||
},
|
||||
timeout: 5 * 60 * 1000 // 5 minutes
|
||||
}).catch((error) => Promise.reject(parseS3UploadError({ t, error, maxSize })));
|
||||
|
||||
const previewUrl = await getPresignedChatFileGetUrl({
|
||||
|
||||
@@ -109,7 +109,8 @@ const QuickCreateDatasetModal = ({
|
||||
: item
|
||||
)
|
||||
);
|
||||
}
|
||||
},
|
||||
timeout: 5 * 60 * 1000 // 5 minutes
|
||||
})
|
||||
.then(() => {
|
||||
setSelectFiles((state) =>
|
||||
|
||||
@@ -96,7 +96,8 @@ const SelectFile = React.memo(function SelectFile() {
|
||||
: item
|
||||
)
|
||||
);
|
||||
}
|
||||
},
|
||||
timeout: 5 * 60 * 1000 // 5 minutes
|
||||
})
|
||||
.then(() => {
|
||||
setSelectFiles((state) =>
|
||||
|
||||
Reference in New Issue
Block a user