-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Validator] Add the option filenameMaxLength
to the File constraint
#17955
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
[Validator] Add the option filenameMaxLength
to the File constraint
#17955
Conversation
|
||
The message displayed if the filename of the file exceeds the limit set | ||
with the ``filenameMaxLength`` option. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can add :
You can use the following parameters in this message:
============================== ==============================================================
Parameter Description
============================== ==============================================================
``{{ filename_max_length }}`` Maximum number of characters allowed
============================== ==============================================================
I saw some similar thing for other options.
Thanks for the PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oooh yeah definitely. Thank you!
48243ec
to
83fb4d4
Compare
reference/constraints/File.rst
Outdated
``filenameMaxLength`` | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
**type**: ``int`` **default**: ``null`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**type**: ``int`` **default**: ``null`` | |
**type**: ``integer`` **default**: ``null`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be spotted by DOCtor-RST 🤔 , was this the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checked. It was spotted, I just missed it 😄
https://github.com/symfony/symfony-docs/actions/runs/4245728234/jobs/7381615847
83fb4d4
to
1a1fb8f
Compare
Thank you Alexandre. |
Fixes #17953