You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BorisCharriere
changed the title
Specify attributes of fileType thanks to validatorTypeGuesser
[Form] [Validator]Specify attributes of fileType thanks to validatorTypeGuesser
Dec 6, 2018
BorisCharriere
changed the title
[Form] [Validator]Specify attributes of fileType thanks to validatorTypeGuesser
[Form][Validator] Specify attributes of fileType thanks to validatorTypeGuesser
Dec 6, 2018
…constraint and mime types option (Coosos)
This PR was squashed before being merged into the 4.4 branch (closes#32587).
Discussion
----------
[Form][Validator] Generate accept attribute with file constraint and mime types option
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| BC breaks? | no
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass? | yes
| Fixed tickets | #29327
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
Generate the html `accept` attribute based on the file constraint and mime types option.
Is it necessary to add this feature in the documentation ?
Made with @Timherlaud
_Sorry I have recreated this pull request because I missed my rebase_
Commits
-------
5a7b737 [Form][Validator] Generate accept attribute with file constraint and mime types option
Description
We could use the property
mimeTypes
of theSymfony\Component\Validator\Constraints\File
to specify the attributeaccepted
of the fieldExample
in
Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser
line 125The text was updated successfully, but these errors were encountered: