mirror of
				https://github.com/langgenius/dify.git
				synced 2025-11-04 12:53:38 +00:00 
			
		
		
		
	chore: exclude .txt extenstion in create_by_text API (#6956)
This commit is contained in:
		
							parent
							
								
									f0d10553b4
								
							
						
					
					
						commit
						dd676866aa
					
				@ -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',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user