fix(app): The bugs that were fixed in the previous version but were later rolled back.

This commit is contained in:
Timebomb2018
2026-03-18 11:50:17 +08:00
parent 7b99a32a1e
commit 7e5e1609b0
2 changed files with 3 additions and 2 deletions

View File

@@ -588,7 +588,7 @@ class MultimodalService:
return await self._extract_pdf_text(file_content)
elif file_mime_type in DOC_MIME:
return await self._extract_word_text(file_content)
elif file_mime_type in XLSX_MIME:
elif file_mime_type in XLSX_MIME and file.file_type.endswith(("xlsx", "xls")):
return await self._extract_xlsx_text(file_content)
elif file_mime_type in CSV_MIME:
return await self._extract_csv_text(file_content)