Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[Validator] Fix of the description of the mime type message option#16684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:6.1frommdoutreluingne:fix-mime-types-message-image
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletionsreference/constraints/File.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -259,16 +259,7 @@ You can find a list of existing mime types on the `IANA website`_.
The message displayed if the mime type of the file is not a valid mime type
per the `mimeTypes`_ option.

You can use the following parameters in this message:

=============== ==============================================================
Parameter Description
=============== ==============================================================
``{{ file }}`` Absolute file path
``{{ name }}`` Base file name
``{{ type }}`` The MIME type of the given file
``{{ types }}`` The list of allowed MIME types
=============== ==============================================================
..include::/reference/constraints/_parameters-mime-types-message-option.rst.inc

``notFoundMessage``
~~~~~~~~~~~~~~~~~~~
Expand Down
7 changes: 6 additions & 1 deletionreference/constraints/Image.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -442,7 +442,12 @@ You can find a list of existing image mime types on the `IANA website`_.
``mimeTypesMessage``
~~~~~~~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.``
**type**: ``string`` **default**: ``This file is not a valid image.``

The message ``The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.`` will be displayed
if the allowed `mimeTypes`_ are only a subset of ``image/*``.

..include::/reference/constraints/_parameters-mime-types-message-option.rst.inc

``minHeight``
~~~~~~~~~~~~~
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
You can use the following parameters in this message:

=============== ==============================================================
Parameter Description
=============== ==============================================================
``{{ file }}`` Absolute file path
``{{ name }}`` Base file name
``{{ type }}`` The MIME type of the given file
``{{ types }}`` The list of allowed MIME types
=============== ==============================================================

[8]ページ先頭

©2009-2025 Movatter.jp