Notification with image not working

Hi,

I have below automation set up, but whatever I try for the location of the image i cannot get it to be displayed in notification window. I am accessing my instance via https://myhostname.ddns.net:8123. Can someone please help me and show what am I putting wrong in the url for the image? I can see the image is being created. I have tried putting the image in both www and accessing it by local, and as can be seen below thorugh my Synology drive

alias: Domofonn
description: “”
trigger:

  • platform: state
    entity_id:
    • binary_sensor.domofon_dzwonek
      to: “on”
      condition:
      action:
  • service: camera.snapshot
    metadata: {}
    data:
    filename: /media/synolog/frontyard.jpg
    target:
    device_id: 94374e86a97fabccdc455105d5a2df97
  • delay:
    hours: 0
    minutes: 0
    seconds: 2
    milliseconds: 0
  • service: notify.mobile_app_sm_s901b
    data:
    message: Domofon
    data:
    attachment:
    content-type: jpg
    hide-thumbnail: false
    image: http://myhostname.ddns.net/media/synolog/frontyard.jpg

the formatting is off and also you are copying something that is not supported via the android app. Best to follow the docs instead of a forum post.

https://companion.home-assistant.io/docs/notifications/notification-attachments#media_source-recommended