mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #726] Port missing in URL for "send notification" via web gui / attachement #529
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#529
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 @un99known99 on GitHub (May 13, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/726
Port missing in URL for "send notification" via web gui / attachement see screenshot:
should look like https://ntfy.example.org:9999/file/Xx7CQB4e8c25.exe, right?
BTW: is it intended that file name in link is not reflecting original filename?
@wunter8 commented on GitHub (May 14, 2023):
Do you have the port included in the
base-urlsetting inserver.yml?Also, yes, the filename will be different. It generates a random ID to prevent anyone from guessing the URL since it isn't protected by access controls. If you want the filename to be something else when you download it, you can include the
Filenameheader@un99known99 commented on GitHub (May 14, 2023):
Hi, thx, correct, stupied me, didnt include URL PORT. For the clear filename I checked Server.yml but didnt find the parameter for getting Real name, can u guide me to the correct parameter name?
Talking about sending test files in webgui, there is no option or possibility to set Real filename
Thx in advance
@wunter8 commented on GitHub (May 14, 2023):
You need to include the
Filenameheader with each message you send. See https://docs.ntfy.sh/publish/#attach-local-fileI'm pretty sure the web app automatically adds the
Filenameheader. The attachment link will still include a random ID, but when you download the file, its name should be correct.@un99known99 commented on GitHub (May 14, 2023):
ah, ok, but via the "testing" it seems not to be possible:
so, seems only a CLI thing working with real filenames then ..?
@wunter8 commented on GitHub (May 14, 2023):
Did you try downloading the file? It should have the correct filename after it's downloaded even though the download URL has the random ID
@un99known99 commented on GitHub (May 14, 2023):
nope, not working:
@wunter8 commented on GitHub (May 14, 2023):
How did you send the notification with the attachment?
@un99known99 commented on GitHub (May 14, 2023):
yepp, attache local file
@wunter8 commented on GitHub (May 14, 2023):
I'm sorry. You are correct. I was testing it from the Android app, not the web app. In the Android app, including the
Filenameheader in the request (which the web app does) makes the downloaded file have the correct name. But when you download the file in the browser/using the web app, the downloaded file does not have the correct name (whether or not theFilenameheader was included)@un99known99 commented on GitHub (May 14, 2023):
no worries, I still love the tool, thx for your support - would that be worth an enhancement request???? :)
@wunter8 commented on GitHub (May 14, 2023):
@binwiederhier What do you think about adding this so that when you click "Open attachment" in the web UI it will automatically download the file with the correct filename? I just tested it locally, and it seems to work.
@binwiederhier commented on GitHub (May 14, 2023):
Sounds good to me.