mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-30 04:29:24 +08:00
feat: handle partial upload success in document batch upload (#16438)
This commit is contained in:
@@ -47,7 +47,12 @@ export const useHandleUploadDocument = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isSuccess && parseOnCreation) {
|
||||
// Trigger parsing for both full and partial success when parseOnCreation is enabled
|
||||
if (
|
||||
(isSuccess || isPartialSuccess) &&
|
||||
parseOnCreation &&
|
||||
ret.data?.length > 0
|
||||
) {
|
||||
runDocumentByIds({
|
||||
documentIds: ret.data.map((x: any) => x.id),
|
||||
run: 1,
|
||||
|
||||
Reference in New Issue
Block a user