Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Symfony/Component/Validator/Constraints/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Video extends File

// The constant for a wrong MIME type is taken from the parent class.
public string $mimeTypesMessage = 'This file is not a valid video.';
public string $sizeNotDetectedMessage = 'The size of the video could not be detected.';
public string $sizeNotDetectedMessage = 'The dimensions of the video could not be detected.';
Copy link
Member

@nicolas-grekas nicolas-grekas Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have the same in the image constraint...
is this really confusing and worth the update?
This message won't be displayed anyway - who sends corrupted videos/images :)

public string $maxWidthMessage = 'The video width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.';
public string $minWidthMessage = 'The video width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.';
public string $maxHeightMessage = 'The video height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.';
Expand Down
Loading