From de86099218a106a02512b9021698395b7846b5ed Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 24 Jul 2026 13:00:38 +0800 Subject: [PATCH] fix: Knowledge base zip upload file authorization error --- apps/common/handle/impl/text/zip_split_handle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/common/handle/impl/text/zip_split_handle.py b/apps/common/handle/impl/text/zip_split_handle.py index 75e418665d9..14f1b7c310a 100644 --- a/apps/common/handle/impl/text/zip_split_handle.py +++ b/apps/common/handle/impl/text/zip_split_handle.py @@ -91,7 +91,8 @@ def _collect_file_refs(tokens: list, base_name: str, zip_files: List[str], conte if file_path.startswith("oss/file/") or file_path.startswith("oss/image/"): file_id = file_path.replace("oss/file/", "").replace("oss/image/", "") if is_valid_uuid(file_id): - file_list.append({"source_file": file_path, "image_id": file_id}) + file_list.append({"source_file": file_path, "image_id": new_id}) + content = update_content(content, source_path, f"./oss/file/{new_id}") else: file_list.append({"source_file": file_path, "image_id": new_id}) content = update_content(content, source_path, f"./oss/file/{new_id}")