Check the mimetype locally to see what it actually is
file --mime-type -b file.slave
Afternoon All
I'm having an issue with uploading a few file types even though i have declared them as ok in the validation:-
$this->validate([
....
'file' => 'required|file|mimes:slave,bin,fpf,ori,dat,org,bak,|max:5000',
]);
But when i go to upload a .bak or .slave file it gives me a validation error of file type must be as per the list but the file type is as per the list.
Is there a better way of validating the file types with custom file types?
Any advice would be much appreciated.
Thanks in advance.
Check the mimetype locally to see what it actually is
file --mime-type -b file.slave
Please or to participate in this conversation.