Skip to content

Commit 2ddb3d3

Browse files
committed
minor #20485 Update File.rst (corentingd)
This PR was merged into the 6.4 branch. Discussion ---------- Update File.rst This is my first ever contribution to the Symfony documentation ! The PR will replace mimeTypes parameters by "extension" and "extensions" in extensionMessage option of the File constraint. <!-- 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 ------- 775bab6 Update File.rst
2 parents a17b5c9 + 775bab6 commit 2ddb3d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: reference/constraints/File.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,12 @@ Parameter Description
314314
The message displayed if the extension of the file is not a valid extension
315315
per the `extensions`_ option.
316316

317-
.. include:: /reference/constraints/_parameters-mime-types-message-option.rst.inc
317+
==================== ==============================================================
318+
Parameter Description
319+
==================== ==============================================================
320+
``{{ extension }}`` The extension of the given file
321+
``{{ extensions }}`` The list of allowed file extensions
322+
==================== ==============================================================
318323

319324
``mimeTypesMessage``
320325
~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)