Answer the question
In order to leave comments, you need to log in
How to upload docx in Laravel?
Validation rule in the request file
'document' => 'required|file|mimes:doc,pdf,docx|max:10024',
Answer the question
In order to leave comments, you need to log in
Try uploading a file and see how PHP sees the file using the mime_content_type function
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question