Skip to content

Validation error message is empty on array of file #12118

Closed
@lino10

Description

@lino10

Hi, after doing some testing, I think this is a bug.

I have this html

<input type="file" name="images[]">
<input type="file" name="images[]">
.
.
<input type="file" name="images[]">

Form Request's rules

'images.*' => 'mimes:jpeg',
'name' => 'required',

When the file type is not jpeg, it redirects back to the input page. So the validation works, but there's no error message. When I checked the error message bag, it is empty.

Illuminate\Support\ViewErrorBag Object ( [bags:protected] => Array ( ) ) 

I'm using Laravel Framework version 5.2.12

Might be related: #6028

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions