Skip to content

Incorrect validation on uploaded file #134

Open

Description

@indapublic

image

Activity

  1. danFWD commented on Mar 16, 2021

    @danFWD

    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.

  2. dave-redfern commented on Mar 19, 2021

    @dave-redfern

    @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.

  3. indapublic commented on Mar 19, 2021

    @indapublic
    Author

    @dave-redfern Awesome! And thanks for your bundle :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions