By default, the Contact Form module doesn't include a File Upload option. The types of fields that are avaiable by default for the Contact Form module are:
To be able to have access to a File Upload option, we can install the Divi Contact Form Helper plugin.
Using Divi Contact Form Helper to add a File Upload option
Install and activate the Divi Contact Form Helper plugin.
Open the Contact Form module and add a new field.
Set the field's ID - use only English characters and no spaces.
- Incorrect field id:
This is my field ID
- Correct field id:
Choose the field's Label text. This is the text that will be displayed on the front end for that particular field.
Expand the Field Options group and select the field type to be Input Field.
Expand the File Upload Settings option group.
Enable Use As File Upload Field.
Set the Maximum Number of Files that a user is allowed to upload.
Use the Allowed File Types section to choose which file types can be uploaded.