SMS attachment uploads fail

Description

When a customer sends a file via SMS (Twilio). We see the following message: “An attachment was received, but upload to server failed.” We’re using S3 for storage. File uploads work for our staff and they work in livechat conversations, so the issue seems to be specific to SMS or Twilio.

Server Setup Information

  • Version of Rocket.Chat Server: 7.4.0
  • Operating System: Ubuntu 24
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Not sure?
  • NodeJS Version: 22.13.1
  • MongoDB Version: 6.0.19 / wiredTiger (oplog Enabled)
  • Proxy: caddy
  • Firewalls involved: All ports closed except for 80 and 443