Hello I have added accept in file input type and when i upload png image it show error Please enter a value with a valid extension. searched a lot and tried different ways but couldn't figure out.
Below is the code for file type.
<input type="file" name="image" accept=".jpg, .png,.jpeg" id="file" class="custom-file-input" />
When i upload png image then only issue occurs with message Please enter a value with a valid extension.
In controller below is the code for validation of image.
$validator = Validator::make($request->all(), [
'image' => 'mimes:jpeg,bmp,png|max:4000',
]);