Unable to upload files above 2GB

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).

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

Hi! Sorry the for delay here :grimacing:

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!