Skip to content

Commit 6a7b20e

Browse files
author
Philipp Heckel
committed
Docs
1 parent 034c812 commit 6a7b20e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

docs/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ The format for a *size* is: `<number>(GMK)`, e.g. 1G, 200M or 4000k.
517517
```
518518
$ ntfy serve --help
519519
NAME:
520-
main serve - Run the ntfy server
520+
ntfy serve - Run the ntfy server
521521
522522
USAGE:
523523
ntfy serve [OPTIONS..]

docs/publish.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ Here's an example that will open Reddit when the notification is clicked:
660660
```
661661

662662
## Attachments
663-
You can send images and other files to your phone as attachments to a notification. The attachments are then downloaded
663+
You can **send images and other files to your phone** as attachments to a notification. The attachments are then downloaded
664664
onto your phone (depending on size and setting automatically), and can be used from the Downloads folder.
665665

666666
There are two different ways to send attachments:
@@ -669,7 +669,7 @@ There are two different ways to send attachments:
669669
* or by [passing an external URL](#attach-file-from-a-url) as an attachment, e.g. `https://f-droid.org/F-Droid.apk`
670670

671671
### Attach local file
672-
To send an attachment from your computer as a file, you can send it as the PUT request body. If a message is greater
672+
To **send a file from your computer** as an attachment, you can send it as the PUT request body. If a message is greater
673673
than the maximum message size (4,096 bytes) or consists of non UTF-8 characters, the ntfy server will automatically
674674
detect the mime type and size, and send the message as an attachment file. To send smaller text-only messages or files
675675
as attachments, you must pass a filename by passing the `X-Filename` header or query parameter (or any of its aliases
@@ -701,6 +701,7 @@ Here's an example showing how to upload an image:
701701
PUT /flowers HTTP/1.1
702702
Host: ntfy.sh
703703
Filename: flower.jpg
704+
Content-Type: 52312
704705

705706
<binary JPEG data>
706707
```
@@ -750,15 +751,13 @@ Here's what that looks like on Android:
750751
</figure>
751752

752753
### Attach file from a URL
753-
Instead of sending a local file to your phone, you can use an external URL to specify where the attachment is hosted.
754+
Instead of sending a local file to your phone, you can use **an external URL** to specify where the attachment is hosted.
754755
This could be a Google Drive or Dropbox link, or any other publicly available URL. The ntfy server will briefly probe
755756
the URL to retrieve type and size for you. Since the files are externally hosted, the expiration or size limits from
756757
above do not apply here.
757758

758759
To attach an external file, simple pass the `X-Attach` header or query parameter (or any of its aliases `Attach` or `a`)
759-
to specify the attachment URL. It can be any type of file.
760-
761-
Here's an example showing how to upload an image:
760+
to specify the attachment URL. It can be any type of file. Here's an example showing how to upload an image:
762761

763762
=== "Command line (curl)"
764763
```
@@ -820,7 +819,6 @@ Here's an example showing how to upload an image:
820819
<figcaption>File attachment sent from an external URL</figcaption>
821820
</figure>
822821

823-
824822
## E-mail notifications
825823
You can forward messages to e-mail by specifying an address in the header. This can be useful for messages that
826824
you'd like to persist longer, or to blast-notify yourself on all possible channels.

0 commit comments

Comments
 (0)