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:
Input Field
Email Field
Textarea Field
Checkbox Field
Radio Buttons
Select field
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.
Example:
- Incorrect field id:This is my field ID
- Correct field id:this_is_my_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.