mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1247] send attachment + a message with curl #880
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#880
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dev72 on GitHub (Dec 27, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1247
Hello,
if I use che ntfy cli I can send a file and set a custom message.
Is there a way to do the same via curl?
Is there a value I can set in attachment-expiry-duration to never delete attachments?
Thank you.
@wunter8 commented on GitHub (Dec 28, 2024):
You can use this example to attach a local image: https://docs.ntfy.sh/publish/#__tabbed_24_1
To set a custom message, add
-H "Message: your message hereThe value has to be non-zero to store attachments, but you can make it save files for years. "Days" is the largest granularity that works. So you could do
1825dfor 5 years.@dev72 commented on GitHub (Dec 28, 2024):
Thank you.
Can I attach more thank one file in a request?
@wunter8 commented on GitHub (Dec 28, 2024):
No, you can't. So if you want to send multiple files, they need to be zipped or archived into a single file first
@dev72 commented on GitHub (Dec 28, 2024):
ok, thank you very much.