I know how to solve the problem, in php.ini i should uncomment the ;extension=php_fileinfo.dll . The problem is that it's not exist in the file php.ini So you created it and restart the Apache server, But The problem is still the same
This is My rules
public function rules()
{
return [
'title' => 'required|unique:posts',
'description' => 'required',
'image' => 'required|image',
'content' => 'required'
];
}
And this is my form
<form action="" method="POST" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label for="image">Image</label>
<input type="file" name="image" id="image" class="form-control">
</div>
</form>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire