RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: file name length limit mismtach (#7630)
Stephen Hu2fa8e3309f30
diff --git a/api/db/services/file_service.py b/api/db/services/file_service.pyindex 367f39d826..60b51a0e41 100644--- a/api/db/services/file_service.py+++ b/api/db/services/file_service.py@@ -432,7 +432,7 @@ class FileService(CommonService):MAX_FILE_NUM_PER_USER = int(os.environ.get('MAX_FILE_NUM_PER_USER', 0))if MAX_FILE_NUM_PER_USER > 0 and DocumentService.get_doc_count(kb.tenant_id) >= MAX_FILE_NUM_PER_USER:raise RuntimeError("Exceed the maximum file number of a free user!")- if len(file.filename) >= 128:+ if len(file.filename.encode("utf-8")) >= 128:raise RuntimeError("Exceed the maximum length of file name!")filename = duplicate_name(