diff --git a/bakeup/workshop/models.py b/bakeup/workshop/models.py index 55e12f4..1112266 100644 --- a/bakeup/workshop/models.py +++ b/bakeup/workshop/models.py @@ -63,7 +63,7 @@ def get_product_count(self): def validate_video_file(value): # Check that the uploaded file is a video file valid_extensions = [".mp4", ".mov", ".avi", ".mkv"] - if not any(value.name.endswith(ext) for ext in valid_extensions): + if not any(value.name.lower().endswith(ext) for ext in valid_extensions): raise ValidationError( "Unsupported file extension. Allowed extensions are: .mp4, .mov, .avi, .mkv" )