Edit history

Earlier versions of Attachment downloads are broken for files over 500 MiB, newest first.

Current version | Edited by Rex
Changes
Commit: [fa3e8525755dae087c03ceaf83b814cbe46c7228](https://github.com/fluxerapp/fluxer/commit/fa3e8525755dae087c03ceaf83b814cbe46c7228)Removed: ### Logs or screenshotsRemoved: Removed: _No response_Removed: Removed: ### ChecksRemoved: Removed: - ☑ I searched existing issues.Removed: - ☑ I wrote this report in my own words, except for direct translation if needed.Removed:
Show

Attachment downloads are broken for files over 500 MiB

Summary

When increasing attachment upload limits from the admin panel to over 500 MiB, you aren't able to download files over 500 MiB even if upload worked fine. When downloading files over 500 MiB, media-proxy throws an error and rejects the download:
media-proxy-1 | {"timestamp":"2026-06-16T19:44:41.879912Z","level":"WARN","fields":{"message":"request rejected","req":"NY8KF0BHZ0Q5","kind":"attachment","method":"GET","path":"/attachments/1516471820922912790/1516508361430925312/hannah_montana_linux_x86_basic_edition.iso","query":"download=true","status":413,"duration_ms":3,"fetch_ms":0,"transform_ms":0,"nsfw_ms":0,"reason":"storage_error","source":"\"key=attachments/1516471820922912790/1516508361430925312/hannah_montana_linux_x86_basic_edition.iso err=stream too long\""},"target":"fluxer_media_proxy::request_log"}
Seems to be because of a constant MAX_MEDIA_PROXY_BYTES

Steps to reproduce

  1. Increase upload limits to 2097152000 bytes.
  2. Upload a file that is over 500 MiB.
  3. Try to download the file.

Environment

Stable Web 2026.616.45607, Linux (x86), Chrome 149.0.0.0, Locale en-GB OS: Linux 7.0.12-1-cachyos (x64) Commit: fa3e8525755dae087c03ceaf83b814cbe46c7228
Original by Rex
Show

Attachment downloads are broken for files over 500 MiB

Summary

When increasing attachment upload limits from the admin panel to over 500 MiB, you aren't able to download files over 500 MiB even if upload worked fine. When downloading files over 500 MiB, media-proxy throws an error and rejects the download:
media-proxy-1 | {"timestamp":"2026-06-16T19:44:41.879912Z","level":"WARN","fields":{"message":"request rejected","req":"NY8KF0BHZ0Q5","kind":"attachment","method":"GET","path":"/attachments/1516471820922912790/1516508361430925312/hannah_montana_linux_x86_basic_edition.iso","query":"download=true","status":413,"duration_ms":3,"fetch_ms":0,"transform_ms":0,"nsfw_ms":0,"reason":"storage_error","source":"\"key=attachments/1516471820922912790/1516508361430925312/hannah_montana_linux_x86_basic_edition.iso err=stream too long\""},"target":"fluxer_media_proxy::request_log"}
Seems to be because of a constant MAX_MEDIA_PROXY_BYTES

Steps to reproduce

  1. Increase upload limits to 2097152000 bytes.
  2. Upload a file that is over 500 MiB.
  3. Try to download the file.

Environment

Stable Web 2026.616.45607, Linux (x86), Chrome 149.0.0.0, Locale en-GB OS: Linux 7.0.12-1-cachyos (x64) Commit: fa3e8525755dae087c03ceaf83b814cbe46c7228

Logs or screenshots

No response

Checks

  • ☑ I searched existing issues.
  • ☑ I wrote this report in my own words, except for direct translation if needed.