I have a form for uploading pdf document and am using laravel validation in my controller like,
$validator = Validator::make($request->all(), [
'document' => 'required|mimes:jpeg,jpg,png,pdf|max:25600',
]);
some of the images and pdf documents mime types like application/octet-stream
is there any way to check that application/octet-stream file mime is png, jpeg or pdf file ?