# form.attachment.max.size problems

**URL:** <https://community.ofelia.com/t/form-attachment-max-size-problems/7910>\
**Category:** Q&A\
**Created:** [28 October 2016 23:17 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910 "2016-10-28T23:17:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jreyes\_5](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jreyes\_5](https://community.ofelia.com/u/jreyes_5)\
**Post date:** [28 October 2016 23:17 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910/1 "2016-10-28T23:17:29Z")

</div>

Hello, I have already changed the value of this parameter and restart the service but still receive the same error:

28/10/2016 14: 24: 15,999 -0500 GRAVE: org.bonitasoft.console.common.server.servlet.FileUploadServlet File is Too Big  
org.apache.commons.fileupload.FileUploadBase $ FileSizeLimitExceededException: The field pbUpload0 ITS Exceeds maximum permitted size of 26,214,400 bytes.

Any ideas?

BonitaBPMCommunity-7.3.1-Tomcat-7.0.67

---

<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:** [31 October 2016 15:29 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910/2 "2016-10-31T15:29:50Z")

</div>

Hi,

You can change the file size limit in this configuration file: tenants/1/tenant\_portal/console-config.properties Or in tenant\_template\_portal/console-config.properties if you want to change the configuration before the tenant creation.

Please note that a side effect of increasing the file size limit is the impact on the Java memory. You’ll probably have to extend the memory allowed for the JVM in order to handle large files.

Cheers

---

<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:** [31 October 2016 00:31 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910/3 "2016-10-31T00:31:06Z")

</div>

reduce the size of the file being uploaded?

🙂

regards

---

<div class="post-metadata">

**Author:** ![alienworkshopsb](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alienworkshopsb](https://community.ofelia.com/u/alienworkshopsb)\
**Post date:** [4 November 2016 16:20 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910/4 "2016-11-04T16:20:35Z")

</div>

Hi, I have already modificate these files:  
./setup/platform\_conf/initial/tenant\_template\_portal/console-config.properties  
./setup/platform\_conf/initial/tenant\_template\_portal/forms-config.properties

The file “tenants/1/tenant\_portal/console-config.properties” doesn’t exists.

I installed the production edition (BonitaBPMCommunity-7.3.1-Tomcat-7.0.67) for Linux (Debian 8).

It still doesn´t work.

A detail, the error listed before said “The field pbUpload0 ITS Exceeds maximum permitted size of 26,214,400 bytes” (26,214,400 bytes = 25 Mb) but in the forms-config.properties file had for default 15Mb.

I appreciate your help.

---

<div class="post-metadata">

**Author:** ![jreyes\_5](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jreyes\_5](https://community.ofelia.com/u/jreyes_5)\
**Post date:** [4 November 2016 16:29 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910/5 "2016-11-04T16:29:03Z")

</div>

jreyes\_5 = alienworkshopsb  
Sorry, I’m really bad at remembering accounts.

---

<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:** [7 November 2016 20:40 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910/6 "2016-11-07T20:40:43Z")

</div>

Hi,

Yes I think you need to pull the configuration first to have the file “tenants/1/tenant\_portal/console-config.properties”.

Have a look to see this [documentation](http://documentation.bonitasoft.com/?page=BonitaBPM_platform_setup) to pull the configuration and push it back.

Cheers

---

<div class="post-metadata">

**Author:** ![jreyes\_5](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jreyes\_5](https://community.ofelia.com/u/jreyes_5)\
**Post date:** [8 November 2016 16:50 UTC](https://community.ofelia.com/t/form-attachment-max-size-problems/7910/7 "2016-11-08T16:50:17Z")

</div>

Thank you very much. All here appreciate your help.
