PHP Validate Uploaded File is PDF
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.
Just to clarify. I need to validate 2 files and send them with phpmailer to an email address. Will the below works?
$finfo = finfo_open(FILEINFO_MIME_TYPE);
} } }
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)