Level 50
Have you tried mimetypes?
https://laravel.com/docs/validation#rule-mimetypes
I'm trying to upload .docx file with this code:
$validated = $request->validate([
'file' => 'mimes:application/vnd.openxmlformats-officedocument.wordprocessingml.document'
]);
dd($request) shows me this mime for a file, but for some reason it is not validated. I tried to add zip, app.../msword, docx mimes to validation rules, but not successfully.
Thanks in advance.
Please or to participate in this conversation.