mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
chore: exclude .txt extenstion in create_by_text API (#6956)
This commit is contained in:
@@ -109,7 +109,7 @@ class FileService:
|
|||||||
tenant_id=current_user.current_tenant_id,
|
tenant_id=current_user.current_tenant_id,
|
||||||
storage_type=dify_config.STORAGE_TYPE,
|
storage_type=dify_config.STORAGE_TYPE,
|
||||||
key=file_key,
|
key=file_key,
|
||||||
name=text_name + '.txt',
|
name=text_name,
|
||||||
size=len(text),
|
size=len(text),
|
||||||
extension='txt',
|
extension='txt',
|
||||||
mime_type='text/plain',
|
mime_type='text/plain',
|
||||||
|
|||||||
Reference in New Issue
Block a user