[GH-ISSUE #1677] 1MB attachment limit on client and broken pipe when exceeding #1168

Open
opened 2026-05-07 00:30:45 +02:00 by BreizhHardware · 0 comments

Originally created by @nanawel on GitHub (Mar 27, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1677

🐞 Describe the bug

First, the client seems to limit the size of an attachment to 1MB, at least when using stdin.
I've set attachment-file-size-limit: 5M on the server and in my local client.yml but it doesn't change the behavior.

Additionally, and maybe with a higher severity, when piping the output of a process to ntfy, it closes the pipe once the limit is reached, killing the process at the start of the chain.

There should be a way to say to ntfy "OK, attach only data to the size limit and discard the rest, but don't exit when data is still flowing" so that the first process would keep going instead of being killed by a Broken pipe.

💻 Components impacted
Self-hosted ntfy, version 2.19.2
Local ntfy client, same version.

Originally created by @nanawel on GitHub (Mar 27, 2026). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1677 :lady_beetle: **Describe the bug** First, the client seems to limit the size of an attachment to 1MB, at least when using stdin. I've set `attachment-file-size-limit: 5M` on the server and in my local client.yml but it doesn't change the behavior. Additionally, and maybe with a higher severity, when piping the output of a process to `ntfy`, it closes the pipe once the limit is reached, killing the process at the start of the chain. There should be a way to say to ntfy "OK, attach only data to the size limit and discard the rest, but don't exit when data is still flowing" so that the first process would keep going instead of being killed by a `Broken pipe`. :computer: **Components impacted** Self-hosted ntfy, version 2.19.2 Local ntfy client, same version.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1168
No description provided.