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
I believe you will need to write a mutator or custom validator, since the actual type of the file being validated in this example is "Symfony...\UploadedFile" and not a native PHP $_FILE.
Activity
danFWD commentedon Mar 16, 2021
I believe you will need to write a mutator or custom validator, since the actual type of the file being validated in this example is "Symfony...\UploadedFile" and not a native PHP $_FILE.
dave-redfern commentedon Mar 19, 2021
@indapublic I ran into this and implemented my own (https://github.com/somnambulist-tech/form-request-bundle/blob/main/src/Rules/UploadedFileRule.php), though it also required overriding the RequiredRule as well.
indapublic commentedon Mar 19, 2021
@dave-redfern Awesome! And thanks for your bundle :)