Expanded files processed by Apache Tika

-Expanded files processed by Apache Tika
This commit is contained in:
HarmJ0y
2023-08-30 13:13:01 -07:00
parent fd21611f0f
commit 97f94badb4
@@ -551,7 +551,7 @@ class FileProcessor(TaskInterface):
doc_is_encrypted = file_data.parsed_data.is_encrypted
# If the file extension indicates that plaintext can be extracted through Tika
if tika_compatible and not doc_is_encrypted:
if (tika_compatible or not file_is_binary) and not doc_is_encrypted:
try:
# use Tika to extract to a new local UUID that references the uploaded Nemesis file text
plaintext_file_id = await self.extract_text(file_path_on_disk)