# Max Attachment Size doesnt work properly

**URL:** <https://community.ofelia.com/t/max-attachment-size-doesnt-work-properly/7866>\
**Category:** Q&A\
**Created:** [13 October 2016 23:32 UTC](https://community.ofelia.com/t/max-attachment-size-doesnt-work-properly/7866 "2016-10-13T23:32:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hirantha.ranasinghe](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@hirantha.ranasinghe](https://community.ofelia.com/u/hirantha.ranasinghe)\
**Post date:** [13 October 2016 23:32 UTC](https://community.ofelia.com/t/max-attachment-size-doesnt-work-properly/7866/1 "2016-10-13T23:32:41Z")

</div>

In my application, there is file upload widget. Which works fine.  
I want to restrict attaching files over 15MB.

According to the default configuration this should return error from server when I try to attache a file over 15MB. But I can attach them without any error.

However, When I try to attach file size of 31MB, then server returns an error.

Any idea?

N.B. : I am trying to attach jpg, png and pdf files.

---

<div class="post-metadata">

**Author:** ![hirantha.ranasinghe](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@hirantha.ranasinghe](https://community.ofelia.com/u/hirantha.ranasinghe)\
**Post date:** [14 October 2016 00:10 UTC](https://community.ofelia.com/t/max-attachment-size-doesnt-work-properly/7866/2 "2016-10-14T00:10:52Z")

</div>

I found a solution.

Need to change the property **form.attachment.max.size** of the **console-config.properties**.  
Now attachment restriction works fine. But I dont know the implication of this change.

N.B. :  
_According to the Bonitasoft documentation, changing the “form.attachment.max.size” property in the forms-config.properties should work. Some how It didnt work for me._
