8000 [Validator] Improve Image constraint invalid mime type message · Issue #16662 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Improve Image constraint invalid mime type message #16662

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fabpot opened this issue Mar 28, 2022 · 1 comment
Closed

[Validator] Improve Image constraint invalid mime type message #16662

fabpot opened this issue Mar 28, 2022 · 1 comment
Milestone

Comments

@fabpot
Copy link
Member
fabpot commented Mar 28, 2022
Q A
Feature PR symfony/symfony#45090
PR author(s) @fancyweb
Merged in 6.1
@xabbuh xabbuh added this to the 6.1 milestone Apr 1, 2022
javiereguiluz added a commit that referenced this issue Apr 1, 2022
…essage (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
@javiereguiluz
Copy link
Member

Closing as fixed by #16663.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0