# Express File Upload Limit

**URL:** <https://community.forestadmin.com/t/express-file-upload-limit/1129>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [October 14, 2020, 3:28pm UTC](https://community.forestadmin.com/t/express-file-upload-limit/1129 "2020-10-14T15:28:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebpsdev](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sebpsdev/32/919_2.png) [@sebpsdev](https://community.forestadmin.com/u/sebpsdev)\
**Post date:** [October 14, 2020, 3:28pm UTC](https://community.forestadmin.com/t/express-file-upload-limit/1129/1 "2020-10-14T15:28:32Z")

</div>

## Expected behavior

We should not get a parsing error when uploading a file of 8.5MB with a body parser limit of 10MB

## Actual behavior

With a body parser limit of 10MB we get the following error when trying to upload a file of 8.5MB  
“PayloadTooLargeError: request entity too large”  
However if we increase the parser limit to 12MB we don’t get any error uploading the same file

## Context

In the app.js file we use the following line to set a limit of 10MB for JSON body parser :  
“app.use(bodyParser.json({ limit: ‘10mb’ }))”

Our configuration is the following :

- Express Version: 4.17.1
- Sequelize Version: 4.0.2

---

<div class="post-metadata">

**Author:** ![Guillaume\_Cisco](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaume_cisco/32/918_2.png) [@Guillaume\_Cisco](https://community.forestadmin.com/u/Guillaume_Cisco)\
**Post date:** [October 14, 2020, 3:33pm UTC](https://community.forestadmin.com/t/express-file-upload-limit/1129/2 "2020-10-14T15:33:06Z")

</div>

Hi @sebpsdev !  
Welcome in the Forest community!

It looks like this is a known issue.  
Could you check this [thread](https://community.forestadmin.com/t/maximum-file-size-in-a-smart-action-field-file/173/4) and telling me if it resolved it 😉

---

<div class="post-metadata">

**Author:** ![rap2h](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/rap2h/32/25_2.png) [@rap2h](https://community.forestadmin.com/u/rap2h)\
**Post date:** [October 15, 2020, 9:05am UTC](https://community.forestadmin.com/t/express-file-upload-limit/1129/3 "2020-10-15T09:05:26Z")

</div>

@sebpsdev Since you asked an additional question in the [main thread](https://community.forestadmin.com/t/maximum-file-size-in-a-smart-action-field-file/173), I consider this one is resolved if you don’t mind (still, feel free to re-open it if required). By the way, I answered your question [here](https://community.forestadmin.com/t/maximum-file-size-in-a-smart-action-field-file/173/7)!
