You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #20893 [Validator] Highlight extensions instead of mimeTypes for File constraint (benito103e)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead.
Discussion
----------
[Validator] Highlight `extensions` instead of `mimeTypes` for `File` constraint
You should always use the extensions option instead of mimeTypes except if you explicitly don't want to check that the extension of the file is consistent with its content (this can be a security issue).
By default, the extensions option also checks the media type of the file.
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `7.x` for features of unreleased versions).
-->
Commits
-------
3474a09 Highligh 'extensions' instead of 'mimeTypes' for File constraint
0 commit comments