Fix: ingestion pipeline (#13012)

### What problem does this PR solve?

Fix ingestion pipeline
Only 1 file is acceptable for ingestion pipeline.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Magicbook1108
2026-02-05 15:55:41 +08:00
committed by GitHub
parent 89fdb1d498
commit 75b2d482e2
3 changed files with 8 additions and 4 deletions

View File

@ -42,7 +42,7 @@ class File(ProcessBase):
#self.set_output("blob", STORAGE_IMPL.get(b, n))
self.set_output("name", doc.name)
else:
file = kwargs.get("file")
file = kwargs.get("file")[0]
self.set_output("name", file["name"])
self.set_output("file", file)
#self.set_output("blob", FileService.get_blob(file["created_by"], file["id"]))