Skip to content

Multiple rules for file upload always return false #2061

Description

@adnzaki

Hi, this is my first issue in this repo. I have searched all the issues that related to what I found, but I think it does not help. I have the following rules for file upload:

$fileRules = [
'agenda_attachment' => [              
      'uploaded[agenda_attachment]|mime_in[agenda_attachment,application/pdf]|max_size[agenda_attachment,1024]'
     ]
];

But when I run the code, it always returns false and gives error message of the first rule. After I tried with only one rule, it works as expected.

Activity

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