Does your form have the enctype set to multipart/form-data?
Feb 4, 2020
3
Level 5
Laravel No Message exception on file upload
Hey guys
I'm trying to validate some custom rules on my app...
I've a problem with images
I've set custom rules for them....
whenever I try to upload an MP4 or MP3 file I get a No Message Exception error without specifying anything
I can't even get into the method...
it works normally with other type of files...
$request->validate([
'photo' => 'image|mimes:jpeg,png,jpg|max:2048',
], [
'photo.image' => 'Le format du photo importé est non supporté ',
'photo.mimes' => 'Le format du photo importé est non supporté ',
'photo.max' => 'Photo importé est volumineux ! ',
]);
Please or to participate in this conversation.