validation
validation copied to clipboard
Incorrect validation on uploaded file
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.
@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.
@dave-redfern Awesome! And thanks for your bundle :)