# Variables

**URL:** <https://community.ofelia.com/t/variables/5164>\
**Category:** Q&A\
**Created:** [18 September 2014 20:17 UTC](https://community.ofelia.com/t/variables/5164 "2014-09-18T20:17:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![daradondo](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@daradondo](https://community.ofelia.com/u/daradondo)\
**Post date:** [18 September 2014 20:17 UTC](https://community.ofelia.com/t/variables/5164/1 "2014-09-18T20:17:00Z")

</div>

If one of my variables is going to be an upload file, which variable data type should I use?

---

<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:** [24 September 2014 05:06 UTC](https://community.ofelia.com/t/variables/5164/2 "2014-09-24T05:06:16Z")

</div>

Hi Darando,

I’ll assume you’re using 6.\*

Variables are no longer used to store “documents” of which a uploaded file is typed as.

To define a document you have to do it at the Pool level and add a document. Here you specify the appropriate mime type etc.

More details [here…](http://documentation.bonitasoft.com/handling-documents)

regards  
Seán

---

<div class="post-metadata">

**Author:** ![KeatonNader](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@KeatonNader](https://community.ofelia.com/u/KeatonNader)\
**Post date:** [30 June 2022 06:44 UTC](https://community.ofelia.com/t/variables/5164/3 "2022-06-30T06:44:04Z")

</div>

These are stored across all blocks of code, meaning that they can be changed by anyone who reads them.Constants: These are special types of variables that cannot be changed and which must be set before they are used. I will have to [buy a resume](https://www.resumesplanet.com/buy-resume.php) so that I could get a job after that.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [19 September 2014 08:35 UTC](https://community.ofelia.com/t/variables/5164/4 "2014-09-19T08:35:56Z")

</div>

Hi Daradondo, can you explain a bit more your need please? what you want to do with your variable ? some details of your process? thanks!

---

<div class="post-metadata">

**Author:** ![daradondo](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@daradondo](https://community.ofelia.com/u/daradondo)\
**Post date:** [16 October 2014 19:34 UTC](https://community.ofelia.com/t/variables/5164/5 "2014-10-16T19:34:26Z")

</div>

the user will need to upload pictures that they have taken from their device. It also has to be used throughout the process. I don’t see a data type for uploaded files. I see it in the form but not for process data

---

<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:** [17 October 2014 12:08 UTC](https://community.ofelia.com/t/variables/5164/6 "2014-10-17T12:08:37Z")

</div>

what version of Bonita are you using? as I said before…see answer…photos are just a document type…

regards
