Skip to content

Commit 4b907be

Browse files
fix: also skip FileType.UNK in mime_type detection to preserve fallback behavior
Co-Authored-By: Ryan Waskewich <ryan.waskewich@airbyte.io>
1 parent f3ac153 commit 4b907be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

airbyte_cdk/sources/file_based/file_types/unstructured_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def _get_filetype(self, file: IOBase, remote_file: RemoteFile) -> Optional[FileT
407407
"""
408408
if remote_file.mime_type:
409409
ft = FileType.from_mime_type(remote_file.mime_type)
410-
if ft is not None:
410+
if ft is not None and ft != FileType.UNK:
411411
return ft
412412

413413
# set name to none, otherwise unstructured will try to get the modified date from the local file system

0 commit comments

Comments
 (0)