in your form add enctype. <form id="video-work-upload-form" action="" method="POST" class="" role="form" enctype="multipart/form-data">.
Dec 17, 2019
12
Level 1
how to validate images, videos, audios, pdfs, word, excell, and powerpoint documents all from one input file
i want to validate every uploaded file. That is images, videos, audios, pdfs, word, excell, and powerpoint documents all from one input file but getting below error
The file must be a file of type: jpeg, png, PNG, jpg, zip, pdf, ppt, pptx, xlx, xlsx, docx, doc, gif, webm, mp4, mpeg.
This is the validation
'file' => 'required|mimes:jpeg,png,jpg,zip,pdf,ppt, pptx, xlx, xlsx,docx,doc,gif,webm,mp4,mpeg',
Please or to participate in this conversation.