diff --git a/cmd/enrichment/enrichment/tasks/file_processor.py b/cmd/enrichment/enrichment/tasks/file_processor.py index c58deaa..c3682fb 100644 --- a/cmd/enrichment/enrichment/tasks/file_processor.py +++ b/cmd/enrichment/enrichment/tasks/file_processor.py @@ -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)