How to Change the Allowed File Types in File Upload

December 7, 2023

This guide shows how to change the allowed file types on your form when using the File Upload element.

The default allowed files extensions are as follows:

  • PDF
  • DOC
  • DOCX
  • XLS
  • XLSX
  • CSV
  • TXT
  • RTF
  • HTML
  • ZIP
  • MP3
  • WMA
  • MPG
  • FLV
  • AVI
  • JPG
  • JPEG
  • PNG
  • GIF

You can add or remove these extensions to limit your form only to accept specific file types. Here’s how:

  1. In Form Builder, add a File Upload element to your form or select an existing one.
An arrow pointing to the File Upload element in Form Builder's Form Elements pane
An arrow pointing to the File Upload element in Form Builder's Form Elements pane
  1. Select the File Upload’s gear icon to open properties.
An arrow pointing to the File Upload element's gear icon, to open properties, in Form Builder
  1. In the properties pane on the right, go to Options at the top.
  2. List your allowed file extensions comma-separated in the File Types field.
Highlights to access the File Upload element's File Types option in Form Builder
form-error-invalid-file-extension-min-png

Notes:

  • The allowed extensions list is case-insensitive.
  • List the extensions without a leading dot (e.g., enter “pdf” instead of “.pdf”).
  • Enter asterisk (“*”) in File Types to allow all file types.
  • Your form will show an invalid extension message when a form filler tries to upload a file that is not in the allowed list.


See also: Changing the File Upload Size Limit.

Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • Disha - Profile picture
  • Helen - Profile picture
  • Nokuthula Gxeka - Profile picture
  • Chantelle Wright - Profile picture
  • Surya  - Profile picture
  • bardoliwala copier - Profile picture
  • Jeff Nelson - Profile picture
  • Cris Persia - Profile picture
  • Marialynydian - Profile picture
  • Md Rana  - Profile picture
  • Paul Hancock - Profile picture
  • Gilpatric - Profile picture
  • Anna Madden - Profile picture
  • Jesabel ramo - Profile picture
  • app moricone - Profile picture
  • laurel austermuehle - Profile picture
  • Md Ahadul Islam Rajon - Profile picture
  • berdesa - Profile picture
  • backendopsgh - Profile picture
  • mabelgoodrich - Profile picture
  • Wendy Parker - Profile picture
  • ZRX - Profile picture
  • adhi 80 - Profile picture
  • My Small Garage - Profile picture
  • Tasmia - Profile picture