Does ejabberd support offline file transfers? [clo

2019-04-09 07:03发布

I am working on an XMPP client, using ejabberd as server. My question is how can I support offline file transferring?

I only want to do the offline file transferring for image files.

For example, I can transfer an image to John even if he is offline. When John comes back online, the server will send him the image.

How can I do that?

标签: xmpp ejabberd
3条回答
Anthone
2楼-- · 2019-04-09 07:47

We implemented offline file transfer is TextOne mobile client, but we had to do a custom module. There is no good specification for that yet.

However, for a simple need as you have, I think you could implement it purely client side (uploading to an HTTP server) and use XMPP for signaling.

查看更多
再贱就再见
3楼-- · 2019-04-09 07:55

There is currently no extension for XMPP to allow offline file transfers.

Presumably this would need to be supported by the recipient's server, and it would need to be implemented as a server-specific plugin.

Alternatively a project that may be of interest to you is Jabber Disk, which allows you to upload a file via XMPP, and then returns a HTTP URL you can send to people (for example as an offline message).

查看更多
家丑人穷心不美
4楼-- · 2019-04-09 07:59

XMPP had an extension for this - XEP-0129: WebDAV File Transfers - but it is deferred!

I am searching for the same solution. I came across it, but did not find a XMPP server still supporting it.

Still searching for a solution.

查看更多
登录 后发表回答