# Unable to upload files above 2GB

**URL:** <https://forums.rocket.chat/t/unable-to-upload-files-above-2gb/14779>\
**Category:** Community Support\
**Tags:** docker\
**Created:** [August 26, 2022, 9:19am UTC](https://forums.rocket.chat/t/unable-to-upload-files-above-2gb/14779 "2022-08-26T09:19:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfmit](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@sfmit](https://forums.rocket.chat/u/sfmit)\
**Post date:** [August 26, 2022, 9:19am UTC](https://forums.rocket.chat/t/unable-to-upload-files-above-2gb/14779/1 "2022-08-26T09:19:51Z")

</div>

### Description

Our users are unable to upload files above 2GB. When selecting the file and uploading, everything goes fine. The percentage goes up to 100% but then it errors out saying:

**The value of “length” is out of range. It must be \>= 0 && \<= 2147483647. Received 4266875433**

Browser console shows generic error 400 Bad Request.

### Server Setup Information

- Version of Rocket.Chat Server: 4.7.2
- Operating System: Ubuntu 18.04
- Deployment Method: docker
- Number of Running Instances: 8
- NodeJS Version: v14.18.3
- MongoDB Version: 4.4.14 / wiredTiger (oplog Enabled)
- Proxy: HAProxy 2.2 on pfSense
- Firewalls involved: pfSense 2.5.2

### Any additional Information

Maximum File Upload Size set to -1 (disabled).  
Accepted Media Types set to blank (all media types allowed).

 ![error](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/d/d71d66f06a0d8ddbf52f3f7679e9109695264c74.png)

---

<div class="post-metadata">

**Author:** ![sfmit](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@sfmit](https://forums.rocket.chat/u/sfmit)\
**Post date:** [September 17, 2022, 1:09am UTC](https://forums.rocket.chat/t/unable-to-upload-files-above-2gb/14779/3 "2022-09-17T01:09:57Z")

</div>

Upload took about 90 seconds. Error 400 showing up in browser console.

 ![dev_tools_console](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/c/c2dbd0977cbe43cf5ba36ccf17db2f7e1b17e794.png)

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [September 23, 2022, 5:37pm UTC](https://forums.rocket.chat/t/unable-to-upload-files-above-2gb/14779/4 "2022-09-23T17:37:06Z")

</div>

Hi! Sorry the for delay here 😬

This kind of errors are usually caused by some config in the reverse proxy in front of Rocket.Chat.

Were you able to solve this?

Thanks!
