mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix: longer timeout (#6012)
This commit is contained in:
parent
b0a58b98f1
commit
499b797d0d
|
|
@ -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) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue