[GH-ISSUE #1011] Web app and iOS PWA does not display image attachments with no file extension #708

Closed
opened 2026-05-07 00:26:46 +02:00 by BreizhHardware · 1 comment

Originally created by @MisterSeagull on GitHub (Jan 26, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1011

🐞 Describe the bug
Attachment image links without a file extension are not treated as images and do not display within the notification in the web app.

Jellyfin does not append an image extension to it's /Images/Primary/ endpoint. When I use the endpoint to dynamically attach a thumbnail to my notification I'm left with an attachment with a file icon named Primary that opens the image in a new tab when I click on it.

💻 Components impacted
web app, iOS PWA

💡 Screenshots and/or logs
image

image

🔮 Additional context
I have tried adding the file header in an attempt to rename the image but that doesn't change anything and if I append a file extension to the URL the image breaks.

Originally created by @MisterSeagull on GitHub (Jan 26, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1011 :lady_beetle: **Describe the bug** Attachment image links without a file extension are not treated as images and do not display within the notification in the web app. Jellyfin does not append an image extension to it's /Images/Primary/ endpoint. When I use the endpoint to dynamically attach a thumbnail to my notification I'm left with an attachment with a file icon named Primary that opens the image in a new tab when I click on it. :computer: **Components impacted** web app, iOS PWA :bulb: **Screenshots and/or logs** ![image](https://github.com/binwiederhier/ntfy/assets/12835264/1f280480-b55a-42a9-8088-aa80e4168939) ![image](https://github.com/binwiederhier/ntfy/assets/12835264/b3868998-0e5a-4e96-adea-44ee725fc147) :crystal_ball: **Additional context** I have tried adding the file header in an attempt to rename the image but that doesn't change anything and if I append a file extension to the URL the image breaks.
BreizhHardware 2026-05-07 00:26:46 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@MisterSeagull commented on GitHub (Oct 26, 2024):

The solution was to add the Filename property as shown below:

"Attach": "{{{ServerUrl}}}/Items/{{{ItemId}}}/Images/Primary",
"Filename": "Primary.jpg",
<!-- gh-comment-id:2439713827 --> @MisterSeagull commented on GitHub (Oct 26, 2024): The solution was to add the Filename property as shown below: ``` "Attach": "{{{ServerUrl}}}/Items/{{{ItemId}}}/Images/Primary", "Filename": "Primary.jpg", ```
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#708
No description provided.