Tweak Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

File Upload Contact Form

Include a file upload field to a contact form.

Wireframe

File Upload Form

Coding Instructions

Step 1. Edit the cpanel form

Open your cpanel form by navigating to Webstore > Form. If you can't see this as an available option, you'll need to enable the link by going to Setup & tools, clicking on Content Types Manager, clicking on form, and then ticking the Show in control panel menu box.

Scroll down to the Module settings section, enter "file" in the File upload field section, and hit save.

Step 2. Add the necessary code to your HTML form

Scroll up to the Description section for the form, hit Source Code, and then add the following parameter into the opening form tag:

enctype="multipart/form-data"

Paste the below code where you'd like your file upload field to appear:

<div class="form-group"><label>File Upload</label>
    <input class="form-control" name="inp-file" size="40" type="file" value="" />
</div>

Final Result

File Upload Form