forked from open-webui/open-webui
		
	fixing md document upload bug
This commit is contained in:
		
							parent
							
								
									5e32db1c57
								
							
						
					
					
						commit
						7f14479567
					
				
					 2 changed files with 14 additions and 5 deletions
				
			
		|  | @ -301,7 +301,10 @@ | |||
| 							const file = inputFiles[0]; | ||||
| 							if (['image/gif', 'image/jpeg', 'image/png'].includes(file['type'])) { | ||||
| 								reader.readAsDataURL(file); | ||||
| 							} else if (SUPPORTED_FILE_TYPE.includes(file['type'])) { | ||||
| 							} else if ( | ||||
| 								SUPPORTED_FILE_TYPE.includes(file['type']) || | ||||
| 								['md'].includes(file.name.split('.').at(-1)) | ||||
| 							) { | ||||
| 								uploadDoc(file); | ||||
| 								filesInputElement.value = ''; | ||||
| 							} else { | ||||
|  | @ -461,8 +464,8 @@ | |||
| 							placeholder={chatInputPlaceholder !== '' | ||||
| 								? chatInputPlaceholder | ||||
| 								: speechRecognitionListening | ||||
| 								? 'Listening...' | ||||
| 								: 'Send a message'} | ||||
| 									? 'Listening...' | ||||
| 									: 'Send a message'} | ||||
| 							bind:value={prompt} | ||||
| 							on:keypress={(e) => { | ||||
| 								if (e.keyCode == 13 && !e.shiftKey) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 i810697
						i810697