1
Declined

Image Notifications not working

I am trying to POST a notification via the following terminal command

curl -s --form-string "token=myToken" --form-string "user=myUser" --form-string "device=myDevice" --form-string "title=theTitle" --form-string "message=ugh" -F "attachment='~/DeskTop/1.JPG'" 'https://api.pushover.net/1/messages.json'

I get the following response.
{"status":1,"request":"TokenLookingMessageHere"}

The message comes through but no picture attachment with it. The picture is only .5mb. I have tried with several pictures and moved locations on my laptop etc. I can't get any of them to come through. 

1 reply

This area of our support site is for feature requests, not support requests.

From a quick glance it looks like you are missing the '@' before '~/Desktop/1.JPG' so curl does not know it's supposed to read that filename, but is instead sending that literal filename as the attachment value.

Topic is closed for comments