anandmainali5's avatar

How to upload password protected xlsx file?

I tried to upload password protected xlsx with validation but i can't upload.. it throws filetype validation error.

$this->validate($request, [
'evidences' => 'required|max:10240|mimes:xls,xlsx'
]);

0 likes
9 replies
jlrdw's avatar

Try the same with one not password protected, see if it works. But it may be the mimes is not set correct.

anandmainali5's avatar

@Sinnbeck it returns application/encrypted type. and i have tried adding it to mimes but it doesn't work.

anandmainali5's avatar

@Sinnbeck what if there are multiple file validation, where to add the above validation you mentioned? 'evidences' => 'required|max:10240|mimes:doc,docx,ppt,pptx,xls,xlsx,jpg,png,jpeg,gif,pdf'

Please or to participate in this conversation.