binwiederhier 1 год назад
Родитель
Сommit
d54db74f5a
2 измененных файлов с 9 добавлено и 8 удалено
  1. 8 8
      docs/publish.md
  2. 1 0
      docs/releases.md

+ 8 - 8
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",

+ 1 - 0
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)