forked from open-webui/open-webui
fix: file content type issue
This commit is contained in:
parent
79d0932a3a
commit
a94e4161f7
1 changed files with 3 additions and 1 deletions
|
@ -388,7 +388,9 @@ def scan_docs_dir(user=Depends(get_admin_user)):
|
||||||
collection_name = calculate_sha256(f)[:63]
|
collection_name = calculate_sha256(f)[:63]
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
loader, known_type = get_loader(filename, file_content_type, str(path))
|
loader, known_type = get_loader(
|
||||||
|
filename, file_content_type[0], str(path)
|
||||||
|
)
|
||||||
data = loader.load()
|
data = loader.load()
|
||||||
|
|
||||||
result = store_data_in_vector_db(data, collection_name)
|
result = store_data_in_vector_db(data, collection_name)
|
||||||
|
|
Loading…
Reference in a new issue