From 4b1af0d5251d0153d6678d6cb9a813727b44476d Mon Sep 17 00:00:00 2001 From: Harry Date: Tue, 10 Feb 2026 18:21:26 +0800 Subject: [PATCH] fix: ensure file extension validation is case-insensitive --- api/factories/file_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/factories/file_factory.py b/api/factories/file_factory.py index 0be836c8f1..0928555ce7 100644 --- a/api/factories/file_factory.py +++ b/api/factories/file_factory.py @@ -488,7 +488,7 @@ def _is_file_valid_with_config( if ( input_file_type == FileType.CUSTOM and config.allowed_file_extensions is not None - and file_extension not in config.allowed_file_extensions + and file_extension.lower() not in {ext.lower() for ext in config.allowed_file_extensions} ): return False