Fix importing files with non-ascii names (#2555)

This commit is contained in:
Kexogg 2023-02-01 00:33:06 +05:00 committed by GitHub
parent dace08d4e3
commit dae4550bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ class TikaDocumentParser(DocumentParser):
with open(document_path, "rb") as document_handle:
files = {
"files": (
file_name or os.path.basename(document_path),
"convert" + os.path.splitext(document_path)[-1],
document_handle,
),
}