I am trying to:
restrict a form field to only accept the pdf filetype
Link to a page where the issue can be seen:
hidden link
I expected to see:
An ability to upload only .pdf files
Instead, I got:
Warning that my .pdf was not the right filetype. I've tried a couple of different pdf files. I used the code found here to create the restriction. It is working, I have the code in my functions file and have updated the form ID and filed slug. But when I try to upload a pdf file it fails the validation