Skip Navigation

[Resolved] Restriction on file upload code snippet not validating correctly

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 0 replies, has 1 voice.

Last updated by DavidH606 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1195633

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