Saltar navegación

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

This support ticket is created hace 6 años. 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)

Etiquetado: ,

Este tema contiene 0 respuestas, tiene 1 mensaje.

Última actualización por DavidH606 hace 6 años.

Asistido por: Christian Cox.

Autor
Mensajes
#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:
enlace oculto
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