1. Home
  2. Knowledge Base
  3. WooCommerce Product Options
  4. Troubleshooting

"Invalid file type" warning on File Upload field

The WooCommerce Product Options plugin lets you add file upload fields so that customers can add files to the products they are ordering. If customers are seeing an "Invalid file type" warning when they try to upload files, then there are two possible causes:

  • The file type has not been enabled on the file upload field.
  • The file type is not permitted on your WordPress installation. 

Keep reading to learn how to check which of these is causing the problem.

Checking that the file type has been enabled on the file upload field

When you create a file upload field, the 'Advanced' section allows you to enter the file types that the customer can upload: 

File upload field with file type and size

You can check the settings for your file upload field as follows:

  1. Go to Products → Options.
  2. Open the option group.
  3. Edit the file type option.
  4. Open the 'Advanced' section and check the 'Allowed file types' field. Add any additional file types as needed.

Checking that file type is permitted on your WordPress installation

WordPress itself has settings which control which file types can be uploaded. If the customer's file type has been enabled on the file upload field but there is still an error, then this probably means that your wider WordPress installation has forbidden that file type.

There are several ways to check this and change the allowed file types:

  • If you're using WordPress multisite then there's an 'Upload file types' setting in the Network Admin under SettingsNetwork Settings.
  • You can ask your host to check it for you.
  • IsItWP has published a useful article about different ways to change the allowed file types, including suggested plugins that can do it for you.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.