I have a validator set up to check if the document we upload is an XML file
if ($request->input('action') == 'upload_document') {
$validator = Validator::make($request->all(), [
'file' => 'bail|required|mimes:application/xml,xml|max:10000',
]
);
But when I do my upload, this validator triggers me an error "File must e of type application/xml,xml" even when I drop a real XML file with a .xml extension.
I have in my php.ini config extension=php_fileinfo.dll of course
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire