forked from open-webui/open-webui
		
	Allow any file to be used for RAG.
Changed RAG parser to prefer file extensions over MIME content types. If the type of file is not recognized assume it's a text file.
This commit is contained in:
		
							parent
							
								
									6070e6bcd1
								
							
						
					
					
						commit
						aa1d386042
					
				
					 3 changed files with 27 additions and 43 deletions
				
			
		|  | @ -73,7 +73,8 @@ | |||
| 				) { | ||||
| 					uploadDoc(file); | ||||
| 				} else { | ||||
| 					toast.error(`Unsupported File Type '${file['type']}'.`); | ||||
| 					toast.error(`Unknown File Type '${file['type']}', but accepting and treating as plain text`); | ||||
| 					uploadDoc(file); | ||||
| 				} | ||||
| 			} else { | ||||
| 				toast.error(`File not found.`); | ||||
|  | @ -153,7 +154,8 @@ | |||
| 						) { | ||||
| 							uploadDoc(file); | ||||
| 						} else { | ||||
| 							toast.error(`Unsupported File Type '${file['type']}'.`); | ||||
| 							toast.error(`Unknown File Type '${file['type']}', but accepting and treating as plain text`); | ||||
| 							uploadDoc(file); | ||||
| 						} | ||||
| 
 | ||||
| 						inputFiles = null; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Marclass
						Marclass