mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
Merge pull request #5419 from cheahjs/fix/remove-doc-support
fix: remove unsupported .doc file ingest
This commit is contained in:
commit
27baa00afb
@ -1160,7 +1160,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str):
|
|||||||
elif (
|
elif (
|
||||||
file_content_type
|
file_content_type
|
||||||
== "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
== "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
||||||
or file_ext in ["doc", "docx"]
|
or file_ext == "docx"
|
||||||
):
|
):
|
||||||
loader = Docx2txtLoader(file_path)
|
loader = Docx2txtLoader(file_path)
|
||||||
elif file_content_type in [
|
elif file_content_type in [
|
||||||
|
Loading…
Reference in New Issue
Block a user