Limit File Upload to PDF only

Is it possible to limit a field upload field to only accept PDF?

I have a school enrollment application with multiple fields to upload supporting documentation. For review purposes it would be much simpler if it only accepted PDFs. Is this possible?

Hi @Leah, not in front of my computer, but you can set a validation rule on your File field to only accept file type PDF,

If you want to go beyond that, you can add an accept attribute with code to your file field so that when a user is choosing a file, they only see PDFs to choose by default. They can get around this, so the validation rule is also necessary if you just want PDFs.

$('#yourInputId').attr('accept', 'application/pdf');

Oh I found it, never looked at the validation rule for file field. Thanks!

1 Like