Does ejabberd support offline file transfers? [clo

2019-04-09 07:27发布

问题:

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?

回答1:

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.



回答2:

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).



回答3:

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.



标签: xmpp ejabberd