# Multiple Attachments file field

**URL:** <https://community.ofelia.com/t/multiple-attachments-file-field/5643>\
**Category:** Q&A\
**Created:** [11 February 2015 03:51 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643 "2015-02-11T03:51:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yalbednah](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@yalbednah](https://community.ofelia.com/u/yalbednah)\
**Post date:** [11 February 2015 03:51 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/1 "2015-02-11T03:51:28Z")

</div>

Hi

I am using Bonita v6 community and i need to attach multiple file attachments in one process so what are the steps ? does it need groovy script ?

and please if there is example i will appreciate it .

Regards

---

<div class="post-metadata">

**Author:** ![yannick.lombardi](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yannick.lombardi](https://community.ofelia.com/u/yannick.lombardi)\
**Post date:** [11 February 2015 08:11 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/2 "2015-02-11T08:11:36Z")

</div>

You doesn’t need any code.  
You just need to create a variable of type DocumentValue for each file in your process data.  
Then in your form, you set the output operation of each file as “DocumentValueVariableX takes value of field\_FileX”.

[Like this]   
[Like this]: [http://img4.hostingpics.net/pics/294815multiplefile.png](http://img4.hostingpics.net/pics/294815multiplefile.png)

After that you can use the “DocumentValueVariable” in any step to do what you want to do.

---

<div class="post-metadata">

**Author:** ![yalbednah](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@yalbednah](https://community.ofelia.com/u/yalbednah)\
**Post date:** [11 February 2015 08:16 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/3 "2015-02-11T08:16:56Z")

</div>

can i add more than one attachment in doc1 ? beacause i need it to be open to the user to add attachments as he want…

---

<div class="post-metadata">

**Author:** ![yannick.lombardi](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yannick.lombardi](https://community.ofelia.com/u/yannick.lombardi)\
**Post date:** [11 February 2015 07:57 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/4 "2015-02-11T07:57:29Z")

</div>

Hi.  
I don’t understand what you want to do.  
Do you want to attach multiple files in the mail connector ?

---

<div class="post-metadata">

**Author:** ![yalbednah](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@yalbednah](https://community.ofelia.com/u/yalbednah)\
**Post date:** [11 February 2015 07:59 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/5 "2015-02-11T07:59:35Z")

</div>

thank you for response  
no i mean in the file field on form …

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [11 February 2015 10:53 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/6 "2015-02-11T10:53:39Z")

</div>

Bonita 6.4 has Document Lists that enable multiple documents to be attached to a process for easier manipulation, have a look [here](http://documentation.bonitasoft.com/documents) …

---

<div class="post-metadata">

**Author:** ![yalbednah](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@yalbednah](https://community.ofelia.com/u/yalbednah)\
**Post date:** [12 February 2015 03:25 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/7 "2015-02-12T03:25:39Z")

</div>

hi Sean

i did try it and does not work …incompatible type between list and file field!! …does it need code ?

regards

---

<div class="post-metadata">

**Author:** ![yannick.lombardi](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yannick.lombardi](https://community.ofelia.com/u/yannick.lombardi)\
**Post date:** [11 February 2015 08:19 UTC](https://community.ofelia.com/t/multiple-attachments-file-field/5643/8 "2015-02-11T08:19:51Z")

</div>

No you can’t.  
One field can get only one file.
