From 9b5e1a6f655680e0e20a5252ef0a1428a29a58cf Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Wed, 2 Mar 2022 17:06:36 +0100 Subject: [PATCH] Update: File Upload Notification --- xep-xxxx-file-upload-notification.md | 29 +++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/xep-xxxx-file-upload-notification.md b/xep-xxxx-file-upload-notification.md index 1e22d80..8cb98bd 100644 --- a/xep-xxxx-file-upload-notification.md +++ b/xep-xxxx-file-upload-notification.md @@ -13,17 +13,20 @@ that will be replaced once the file has been uploaded. ```xml - - - vacation.jpg - image/jpeg - - - LEHV6nWB2yk8pyoJadR*.7kCMdnj - - - - + + + vacation.jpg + image/jpeg + + + LEHV6nWB2yk8pyoJadR*.7kCMdnj + + + + + + + ``` @@ -31,7 +34,7 @@ The `` element indicates that a message should be replaced with the file embed once the upload is done. Metadata about the file should be included as specified by [File metadata element](https://xmpp.org/extensions/xep-0446.html). The metadata should include only the bare minimum, i.e. the mime type and filename. -Additionally, a thumbnail can be sent with the notification in order to allow clients +Additionally, one or more thumbnails can be sent with the notification in order to allow clients to already show a preview. The `` element is specified by [File Thumbnails](https://github.com/PapaTutuWawa/custom-xeps/blob/master/xep-xxxx-file-thumbnails.md). Note that [Unique and Stable Origin IDs](https://xmpp.org/extensions/xep-0359.html) must be used when the message is sent to a @@ -82,5 +85,5 @@ prevent arbitrary messages to be replaced. | Key | Value | | --- | --- | | Author | PapaTutuWawa | -| Version | 0.0.2 | +| Version | 0.0.3 | | Short name | fun |