Skip to content

Commit

Permalink
Make File Extension Check Case-Insensitive (#277)
Browse files Browse the repository at this point in the history
Make File Type Check Case-Insensitive
  • Loading branch information
adreichert authored Jul 13, 2024
1 parent a9b01c7 commit efbcfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit efbcfb1

Please sign in to comment.