-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Add the option filenameMaxLength to the File constraint #49417
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
Conversation
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.
please have a look at test failures
src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php
Outdated
Show resolved
Hide resolved
3b377a6
to
c2b6ef4
Compare
I fixed all tests for the component |
@ke20 we are talking about file. So what do you think about using |
ea93c16
to
c3aaf11
Compare
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.
Some nitpicking and good to go on my side.
src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php
Show resolved
Hide resolved
c3aaf11
to
107a6a3
Compare
Thank you @ke20. |
Sorry I didn't have the time to fix the last little errors ... Thank you for your update ! |
… validator option (xabbuh) This PR was merged into the 5.4 branch. Discussion ---------- [Validator] add translations for the filename max length validator option | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | related to #49417 | License | MIT | Doc PR | Commits ------- 37ef83b add translations for the filename max length validator option
This option allow to define a max length for the uploaded file: