I like this approach it saves a bit of typing
return (in_array($file['content-type'], ['image/jpg', 'application/pdf']));
2
solved Check if file is image or pdf
I like this approach it saves a bit of typing
return (in_array($file['content-type'], ['image/jpg', 'application/pdf']));
2
solved Check if file is image or pdf