Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ddb3d3

Browse filesBrowse 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
Copy full SHA for 2ddb3d3

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

‎reference/constraints/File.rst

Copy file name to clipboardExpand all lines: reference/constraints/File.rst
+6-1Lines changed: 6 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.