One of the most common questions for Divi users is how to add file attachments/upload field to the Divi Contact Form module. This is an essential need for any form plugin, but it is missing in Divi.
The Divi Contact Form Helper plugin by Pee-Aye Creative enables you to add a file upload field to the default Divi Contact Form module. Please note, this feature is not included with Divi and is impossible without our plugin, so we hope you enjoy this exciting feature! This guide will show you how to enable and use the features and settings related to file uploads.
How To Add A File Upload Field
Add New Field
The first step is to add a new field in the Divi Contact Form module. You can do this by clicking the gray plus (+) button.
Select Input Field Type
The Field Options toggle will open. In the Type dropdown, be sure to set the Type as Input Field.
Enable File Upload Field
After selecting the Input Field type, locate the File Upload Settings toggle and open it. There you will see a new setting which is added by our Divi contact Form Helper plugin called “Use As File Upload Field.” Turn this toggle to YES to enable the file upload field settings.
Maximum Upload File Size
This setting enables you to limit the file size which users can upload to the form. This is nice to avoid users uploading files that are too large for the server to handle efficiently. The default maximum upload file size is 1024kb, but you can adjust this as needed.
Maximum Number Of Files
This setting allows you to limit the number of files which can be uploaded to the field. This can be helpful if you are asking for a specific number of files.
Allowed File Types
You can limit which types of files can be uploaded to the form by checking the options provided. The available options to select are listed below:
How To Add More File Types
The file types listed above are the ones allowed by WordPress by default. However, you may want to allow additional file types. The easiest way to do this is to install a plugin called File Upload Types and select the desired file types in the settings interface. In the screenshot example below, we have used the search bar to search for “.ai” and “.eps” file types and selected them.
After selecting the file types in the File Upload Types plugin, those selected file types will appear in the Divi Contact Form module to select as allowed file type options in the form.
File Upload Labels
We love giving you full control of customization, so we added these settings to write your own custom text for each of these fields. This is also a great way to use your own translations to your site language. You can customize the labels for the Accepted File types, Max file Size, and No Files Chosen.
Move Custom Text Label Features To Theme Options
We love giving you full control of customization, so we added these settings to write your own custom text for each of the text related items in the file upload field. This is also a great way to use your own language translations. These settings are sitewide and will affect the file upload fields in all forms on your site.
NOTE: Prior to version 1.3 some of these were in the module but are moved to Theme Options now.
The plugin now included tons of design settings for the file upload field! This includes everything from the container, button, and all the text. I know some of you were looking forward to this, and now you can easily style your file upload fields to match your other fields.