Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitaafade6
committed
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` constraintYou 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 containsthe bug (seehttps://symfony.com/releases for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `7.x` for features of unreleased versions).-->Commits-------3474a09 Highligh 'extensions' instead of 'mimeTypes' for File constraint
1 file changed
+2
-5
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
| 80 | + | |
| 81 | + | |
85 | 82 |
| |
86 | 83 |
| |
87 | 84 |
| |
|
0 commit comments
Comments
(0)