Hi there, I'm trying to validate two files inputs one for a logo and the other for an icon,
1- added the
enctype="multipart/form-data" to the form.
2- validation rules for these inputs are:
[ 'logo' => 'image|mimes:jpeg, jpg, bmp, png', 'icon'=> 'image|mimes:ico', ]
3- when I try to upload a
logo of the type
png, it returns an error says
"The Logo must be a file of type: jpeg, jpg, bmp, png."
4- when I try to upload an
icon of the type
ico it returns error says
"The Icon must be an image."
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.