From 3ccf7024761ed25d1f2d5af5b989f66234f15c81 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 27 Feb 2022 18:57:30 +0100 Subject: [PATCH] Update File Upload Notifications --- xep-xxxx-file-upload-notification.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/xep-xxxx-file-upload-notification.md b/xep-xxxx-file-upload-notification.md index df1b842..1e22d80 100644 --- a/xep-xxxx-file-upload-notification.md +++ b/xep-xxxx-file-upload-notification.md @@ -13,13 +13,13 @@ that will be replaced once the file has been uploaded. ```xml - + vacation.jpg image/jpeg - - LEHV6nWB2yk8pyoJadR*.7kCMdnj + + LEHV6nWB2yk8pyoJadR*.7kCMdnj @@ -32,7 +32,7 @@ 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 -to already show a preview. The `` element is specified by [Thumbnails](https://github.com/PapaTutuWawa/custom-xeps/blob/master/xep-xxxx-thumbnails.md). +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 groupchat. @@ -51,7 +51,7 @@ in the message to inform clients which messages should be replaced. ... - + ``` @@ -66,8 +66,21 @@ method allows a client to show it inline. Examples for such methods are [Out of Band Data](https://xmpp.org/extensions/xep-0066.html) and [Stateless Inline Media Sharing](https://xmpp.org/extensions/xep-0385.html). +In case the sender uses methods like [Stateless Inline Media Sharing](https://xmpp.org/extensions/xep-0385.html) +or [Stateless File Sharing](https://xmpp.org/extensions/xep-0447.html) which allow specifying +a thumbnail, then the client should do here as well to allow clients catching up using +[Message Archive Management](https://xmpp.org/extensions/xep-0313.html) to also provide a thumbnail to their users. + ## Security Considerations A client receiveing a message with an `` element must verify if the message it is supposed to replace was actually sent by the sender of the `` element to prevent arbitrary messages to be replaced. + +## Info + +| Key | Value | +| --- | --- | +| Author | PapaTutuWawa | +| Version | 0.0.2 | +| Short name | fun |