I\'m trying to display a pdf file in php, I used:
easy if its pdf or img use
return (in_Array($file['content-type'], ['image/jpg', 'application/pdf']));