<p>There appears to be 2 errors in your code. <code>name="uploadPhotos.handle[]"</code> should be <code>name="uploadPhotos[]"</code>, assuming your field name is <code>uploadPhotos</code>. The <code>handle</code> part is unnecessary, unless you were using it like <code>name="{{ uploadPhotos.handle }}[]"</code>, but it's redundant since you already are calling the handle to get the handle (but makes more sense when you're automating the template code). </p>

<p>Secondly, you need to specify <code>multiple</code> attribute if you wish to have more than 1 file uploaded.</p>

<p>The correct code should be:</p>

<pre class="lang-html prettyprint-override"><code>&lt;div class="field row field13"&gt;
  &lt;label for="uploadPhotos" class="label"&gt;Upload photos of the fault&lt;/label&gt;
  &lt;input id="uploadPhotos" type="file" name="uploadPhotos[]" multiple /&gt;
&lt;/div&gt;
</code></pre>

CC BY-SA 4.0
2019-02-28T15:44:50.870Z
Apologies for the delayed reply - This worked for me thanks :)
Martin
CC BY-SA 4.0
2019-02-21T16:52:49.473Z
2019-02-21T16:52:49.473Z
Solspace
<p>I've had a good look around and can't find any template reference to uploading multiple images with Freeform.  In settings i've allowed for 5 files in 'File Count'.  I'm using the following template code but it only allows a single file.</p>

<pre><code>&lt;div class="field row field13"&gt;
  &lt;label for="uploadPhotos" class="label"&gt;Upload photos of the fault&lt;/label&gt;
  &lt;input id="uploadPhotos" type="file" name="uploadPhotos.handle[]" placeholder="Please provide any images of the fault" /&gt;
&lt;/div&gt;
</code></pre>

<p>Any guidance appreciated.</p>

<p>Martin</p>

<templating><plugin-freeform><files>
Solspace Freeform upload multiple image files
# Solspace Freeform upload multiple image files

(Asked by: username_0 on 2019-02-21)

I've had a good look around and can't find any template reference to uploading multiple images with Freeform.  In settings i've allowed for 5 files in 'File Count'.  I'm using the following template code but it only allows a single file.

  Upload photos of the fault
  


Any guidance appreciated.
username_0

**Tags:** templating, plugin-freeform, files


---

## 1 answers

### Answer by username_1 on 2019-02-21. Score: 2 | Accepted answer

There appears to be 2 errors in your code. name="uploadPhotos.handle[]" should be name="uploadPhotos[]", assuming your field name is uploadPhotos. The handle part is unnecessary, unless you were using it like name="{{ uploadPhotos.handle }}[]", but it's redundant since you already are calling the handle to get the handle (but makes more sense when you're automating the template code). 
Secondly, you need to specify multiple attribute if you wish to have more than 1 file uploaded.
The correct code should be:

  Upload photos of the fault

> **Comments:**
> **username_0**: Apologies for the delayed reply - This worked for me thanks :)  

---

