Hi i am facing a docx type validation problem. I tried
$validator = Validator::make($request->all(), [
'resume' => 'mimes:doc,pdf,docx'
]);
It will upload pdf file with no error but whenever i try to upload docx files it gives validation error 'must be a file of type: doc, pdf, docx'
any idea
thanks solved it by allowing zip
$validator = Validator::make($request->all(), [
'resume' => 'mimes:doc,pdf,docx,zip'
]);
this is because https://en.wikipedia.org/wiki/Office_Open_XML
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With