In your opening <form> tag, add enctype="multipart/form-data" attribute.
Jan 20, 2018
5
Level 1
image validation rules example
Hello i want to add a validation for image type i am using laravel 5.5 this is my code
'banner_url' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048'
i upload correct file but always says that the file is not correct type
what i am doing wrong?
Please or to participate in this conversation.