mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 12:06:42 +08:00
### What problem does this PR solve? fix: #567 use modal to upload files in the knowledge base ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -85,8 +85,6 @@ const model: DvaModel<FileManagerModelState> = {
|
||||
const pathList = payload.path;
|
||||
const formData = new FormData();
|
||||
formData.append('parent_id', payload.parentId);
|
||||
// formData.append('file', payload.file);
|
||||
// formData.append('path', payload.path);
|
||||
fileList.forEach((file: any, index: number) => {
|
||||
formData.append('file', file);
|
||||
formData.append('path', pathList[index]);
|
||||
|
||||
Reference in New Issue
Block a user