Steps to reproduce
- Try to upload a file in an encrypted chat on a server proxied by lighttpd using mod_proxy

Outcome
What did you expect?
- File uploads and gets sent without any issue
What happened instead?
- Request errors with HTTP 400
Operating system
Debian testing
Browser information
LibreWolf 107.0.1
URL for webapp
https://chat.cat.casa
Application version
Element version: 1.11.17, Olm version: 3.2.12
Homeserver
https://matrix.cat.casa
Will you send logs?
Yes