Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: exclude .txt extenstion in create_by_text API (#6956)

Sangmin Ahndd676866aa76
diff --git a/api/services/file_service.py b/api/services/file_service.py
index c686b190fe9..91399622409 100644
--- a/api/services/file_service.py
+++ b/api/services/file_service.py
@@ -109,7 +109,7 @@ class FileService:
tenant_id=current_user.current_tenant_id,
storage_type=dify_config.STORAGE_TYPE,
key=file_key,
- name=text_name + '.txt',
+ name=text_name,
size=len(text),
extension='txt',
mime_type='text/plain',