Hi,
have tried to change the max file upload to 250MB with the form.attachment.max.size parameter in these files :
- /setup/platform_conf/initial/tenant_template_portal/console-config.properties
- /setup/platform_conf/current/tenant_template_portal/console-config.properties
But no success, the form File Upload keep to send message :
- type: "EntityTooLarge"
- message: "2016.070.zip is 26217055 large, limit is set to 25Mb"
Need help.
Thanks.
Here's the response of the support :
As regards the maximum size of the files that may be attached to a process, the following three actors should be taken into account:
[1]. The Bonita console
==================
This concerns especially the files uploaded via forms or through the Portal.
The limit is defined by these properties:
--> console-config.properties: form.attachment.max.size (default: 25 MB)
--> forms-config.properties:form.attachment.max.size (default: 15 MB) [only affects 6.x forms]
[2]. The application server
====================
This will also determine the size of the files that can be uploaded in the process outside forms (e.g., using connectors,...).
In your case, for Tomcat, the limit is defined by this parameter in the HTTP/HTTPS connectors:
--> server.xml: maxPostSize
[3]. The database
==============
The attached/uploaded files are stored in the database, so the maximum size cannot exceed the capacity of the database column.
BonitaBPM uses BLOB type to store the content of the files/documents, so the limit will be defined by the maximum length of that data type.
NOTE: In order to update the values of the configuration files pointed in [1], please remember to follow the procedure:
1. run: setup.sh pull
2. edit configuration file:
--> <TOMCAT_HOME>/setup/platform_conf/current/tenants/1/tenant_portal/console-config.properties
--> <TOMCAT_HOME>/setup/platform_conf/current/tenants/1/tenant_portal/forms-config.properties
3. run: setup.sh push
4. restart server: stop-bonita.sh + start-bonita.sh