We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc524ab commit f8026cfCopy full SHA for f8026cf
bakeup/workshop/models.py
@@ -63,7 +63,7 @@ def get_product_count(self):
63
def validate_video_file(value):
64
# Check that the uploaded file is a video file
65
valid_extensions = [".mp4", ".mov", ".avi", ".mkv"]
66
- 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):
67
raise ValidationError(
68
"Unsupported file extension. Allowed extensions are: .mp4, .mov, .avi, .mkv"
69
)
0 commit comments