aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-09-18 16:43:35 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-09-18 16:43:35 +0200
commitddc44ca19ba82b7638a909714122e73b92a5183b (patch)
tree4b43713bae0c0cf4842acd9cab485f8bccbb71fa /README.md
parentfc2f037e216e517ec4b87b0663277a3fc40c1d74 (diff)
downloadn_core-ddc44ca19ba82b7638a909714122e73b92a5183b.tar.gz
n_core-ddc44ca19ba82b7638a909714122e73b92a5183b.zip
simplified attachments (server side), moved into handlers again
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 3 insertions, 11 deletions
diff --git a/README.md b/README.md
index ea08283..fd3aa1c 100644
--- a/README.md
+++ b/README.md
@@ -66,7 +66,8 @@ No extra content.
##### `attachment`
The text is the caption of an attached file.
-Extra content: an `attachment`-object. (TODO: extend to array of attachments)
+Extra content: String of content: "`file_name`;`file_type`;`file_content`", where `file_content` is base64 encoded.
+E.g.: "image.png;png;iVBORw0KGgoAAAANSUhEUgAAABwAAAAMBAMAAACD9cA8AAAALVBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAOrOgAAAADnRSTlMAELt2Mu9Eic1mIqtU3XZzvlQAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACJSURBVAgdY2BgFGCAARCTyQDGAzP5HOBcENMVzgMx0zsqGXjmGDBwzpwFYjJoMjBsZkhjOMlQCWIyvGLgvMBQxVDhIABkMrAFMPDqTE5gWPv0AJDJwL6BQW4ByLTlD4BMBo4JMnJADscBhgAgk4HXwYDXgeEINwMbkDZg4LFZwFVzUoAt5ySICQDlYB5evEnwqgAAAABJRU5ErkJggg=="
##### `command`
The text should be formatted in a way to underlying platform of the bridge would recognize it (e.g. prefix with '/').
@@ -74,13 +75,4 @@ Extra content: the description of the command.
##### `link`
The text should be formatted as a link.
-Extra content: the alt text for the uri - the uri should be the text itself, so that clients ignoring this annotation still show the real uri.
-
-#### `attachment`
-The `attachment` object:
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `type` | string | MIME type of the attachment (e.g. "png", "gif", etc) |
-| `name` | string | The name of the file (including the file ending) |
-| `content` | string | Base64 encoded file contents | \ No newline at end of file
+Extra content: the alt text for the uri - the uri should be the text itself, so that clients ignoring this annotation still show the real uri. \ No newline at end of file