mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Fix: Knowledge base page cannot upload folders #6062 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -68,7 +68,10 @@ const FileUpload = ({
|
||||
);
|
||||
};
|
||||
|
||||
interface IFileUploadModalProps extends IModalProps<boolean | UploadFile[]> {
|
||||
interface IFileUploadModalProps
|
||||
extends IModalProps<
|
||||
{ parseOnCreation: boolean; directoryFileList: UploadFile[] } | UploadFile[]
|
||||
> {
|
||||
uploadFileList?: UploadFile[];
|
||||
setUploadFileList?: Dispatch<SetStateAction<UploadFile[]>>;
|
||||
uploadProgress?: number;
|
||||
@ -108,7 +111,9 @@ const FileUploadModal = ({
|
||||
}
|
||||
|
||||
const ret = await onFileUploadOk?.(
|
||||
fileList ? parseOnCreation : [...currentFileList, ...directoryFileList],
|
||||
fileList
|
||||
? { parseOnCreation, directoryFileList }
|
||||
: [...currentFileList, ...directoryFileList],
|
||||
);
|
||||
return ret;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user