diff --git a/docs/publish.md b/docs/publish.md index 7dd5e821..5239bbc6 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -2438,18 +2438,18 @@ Here's an example showing how to upload an image: req.Header.Set("Filename", "flower.jpg") http.DefaultClient.Do(req) ``` - + === "PowerShell" ``` powershell -$Request = @{ - Method = "POST" - Uri = "ntfy.sh/flowers" - InFile = "flower.jpg" - Headers = @{"Filename" = "flower.jpg"} -} + $Request = @{ + Method = "POST" + Uri = "ntfy.sh/flowers" + InFile = "flower.jpg" + Headers = @{"Filename" = "flower.jpg"} + } Invoke-RestMethod @Request ``` - + === "Python" ``` python requests.put("https://ntfy.sh/flowers", diff --git a/docs/releases.md b/docs/releases.md index 7285ebba..cff5c4a1 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1333,6 +1333,7 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release * Remove `mkdocs-simple-hooks` ([#1016](https://github.com/binwiederhier/ntfy/pull/1016), thanks to [@Tom-Hubrecht](https://github.com/Tom-Hubrecht)) * Update Watchtower example ([#1014](https://github.com/binwiederhier/ntfy/pull/1014), thanks to [@lennart-m](https://github.com/lennart-m)) * Fix dead links ([#1022](https://github.com/binwiederhier/ntfy/pull/1022), thanks to [@DerRockWolf](https://github.com/DerRockWolf)) +* PowerShell file upload example ([#1004](https://github.com/binwiederhier/ntfy/pull/1004), thanks to [@YMan84](https://github.com/YMan84)) ### ntfy Android app v1.16.1 (UNRELEASED)