fixed file type check case sensitivity

This commit is contained in:
vabene1111
2025-01-28 07:37:37 +01:00
parent 9587d8832d
commit aa903da042

View File

@@ -44,7 +44,7 @@ def is_file_type_allowed(filename, image_only=False):
check_list += allowed_file_types
for file_type in check_list:
if filename.endswith(file_type):
if filename.lower().endswith(file_type):
is_file_allowed = True
return is_file_allowed