# Maximum file size in a Smart Action field "File"

**URL:** <https://community.forestadmin.com/t/maximum-file-size-in-a-smart-action-field-file/173>\
**Category:** Help me!\
**Created:** [May 14, 2020, 7:29am UTC](https://community.forestadmin.com/t/maximum-file-size-in-a-smart-action-field-file/173 "2020-05-14T07:29:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [May 14, 2020, 8:39am UTC](https://community.forestadmin.com/t/maximum-file-size-in-a-smart-action-field-file/173/4 "2020-05-14T08:39:24Z")

</div>

I think you can configure the default limit in you `app.js` file.

For instance, if you want to allow 10MB, here is what you need to do:

```diff
- app.use(bodyParser.json());
+ app.use(bodyParser.json({ limit: '10mb' }));
- app.use(bodyParser.urlencoded({ extended: false }));
+ app.use(bodyParser.urlencoded({ extended: false, limit: '10mb' }));

```

Let me know if it helps.

---

_[View the full topic](https://community.forestadmin.com/t/maximum-file-size-in-a-smart-action-field-file/173)._
