From efbcfb1d2e8d0c399738d567c76b4e43eb07197f Mon Sep 17 00:00:00 2001 From: Adam Reichert <167141564+adreichert@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:43:41 -0700 Subject: [PATCH] Make File Extension Check Case-Insensitive (#277) Make File Type Check Case-Insensitive --- llama_parse/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_parse/base.py b/llama_parse/base.py index 30328fe..97522c6 100644 --- a/llama_parse/base.py +++ b/llama_parse/base.py @@ -177,7 +177,7 @@ async def _create_job( files = {"file": (file_name, file_input, mime_type)} elif isinstance(file_input, (str, Path)): file_path = str(file_input) - file_ext = os.path.splitext(file_path)[1] + file_ext = os.path.splitext(file_path)[1].lower() if file_ext not in SUPPORTED_FILE_TYPES: raise Exception( f"Currently, only the following file types are supported: {SUPPORTED_FILE_TYPES}\n"