Skip to content

Commit 733dfb8

Browse files
committed
minor #16663 [Validator] Improve Image constraint invalid mime type message (mdoutreluingne)
This PR was merged into the 6.1 branch. Discussion ---------- [Validator] Improve Image constraint invalid mime type message Fixes #16662 Changed the default message in case of incorrect mime type for the image constraint. From 6.1 we will replace `This file is not a valid image.` with this `The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.`. Commits ------- 4cf3e06 [Validator] Improve Image constraint invalid mime type message
2 parents 868e311 + 4cf3e06 commit 733dfb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/Image.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ You can find a list of existing image mime types on the `IANA website`_.
442442
``mimeTypesMessage``
443443
~~~~~~~~~~~~~~~~~~~~
444444

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

447447
``minHeight``
448448
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)