How do I check if the uploaded file is pdf with php? I want to validate the file type is pdf and not just the extension matches pdf.


thanks.