Skip to content

File Validation Rules not working anymore #61241

Description

@jesperbeisner

Laravel Version

13.25.0

PHP Version

8.5.9

Database Driver & Version

No response

Description

We have this Laravel rule:

    /**
     * @return array<string, array<int, string|File>>
     */
    public function rules(): array
    {
        return [
            'filepond_files' => ['required', 'array'],
            'filepond_files.*' => ['required', File::types(['pdf', 'png', 'jpg'])->min('1kb')->max('5mb')],
        ];
    }

and it was and is working fine in Laravel v13.24.0 but broke with v13.25.0 🤔
Have not checked yet which commit broke it, but we get the validation errors now, that no file was uploaded when everything is there.

Steps To Reproduce

Use the rule as provided and try to upload a file.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions