This really simple code snippet ensures that the file upload input only accepts PDFs. This can prevent users from uploading anything other than a PDF.