Skip to content

Commit

Permalink
Update File.rst
Browse files Browse the repository at this point in the history
Replace "type" and "types" parameters by "extension" and "extensions" in the extensionsMessage parameters list
  • Loading branch information
corentingd authored Dec 19, 2024
1 parent 98604fb commit cff3fd2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion reference/constraints/File.rst
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,14 @@ You can find a list of existing mime types on the `IANA website`_.
The message displayed if the extension of the file is not a valid extension
per the `extensions`_ option.

.. include:: /reference/constraints/_parameters-mime-types-message-option.rst.inc
==================== =============================================================
Parameter Description
==================== =============================================================
``{{ file }}`` Absolute file path
``{{ limit }}`` Maximum file size allowed
``{{ extension }}`` The extension of the given file
``{{ extensions }}`` The list of allowed file extensions
==================== =============================================================

``mimeTypesMessage``
~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit cff3fd2

Please sign in to comment.