[jdev] File transfer between online and offline user
Christian Schudt
christian.schudt at gmx.de
Wed Jan 22 11:53:27 UTC 2014
First, you need to upload the file somewhere, on an external HTTP server, which will store the file until the user has downloaded it.
Then you inform the user about the uploaded file and send the URL to him:
<message from='stpeter at jabber.org/work'
to='MaineBoy at jabber.org/home'>
<body>I've uploaded a file for you!</body>
<x xmlns='jabber:x:oob'>
<url>http://www.jabber.org/images/psa-license.jpg</url>
</x>
</message>
The user will receive the message with the OOB extension and can choose to download it.
If you have a clever HTTP server, it could also delete the file once it has been downloaded or after a certan period of time.
-- Christian
Gesendet: Mittwoch, 22. Januar 2014 um 10:03 Uhr
Von: "Muhammad Usman" <muhd.usman87 at gmail.com>
An: "Jabber/XMPP software development list" <jdev at jabber.org>
Betreff: Re: [jdev] File transfer between online and offline user
Dear Schudt,
Can you please elaborate your suggestion and if possible please provide a helping material.. Thanks
On Wed, Jan 22, 2014 at 11:59 AM, Christian Schudt <christian.schudt at gmx.de> wrote:
Hi,
maybe you can upload it somewhere and send the URL to the recipient via http://xmpp.org/extensions/xep-0066.html[http://xmpp.org/extensions/xep-0066.html].
-- Christian
Am 22.01.2014 um 07:45 schrieb Muhammad Usman:
Hi,
I am new to XMPP and I want my users to send files to other recipients, even if the recipients are offline. Server will save the file and will send to recipient, whenever user is login(maximum wait time is 48 hours).
Please help me out regarding how can I achieve this functionality in XMPP. Thanks in Advance
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev[http://mail.jabber.org/mailman/listinfo/jdev]
Unsubscribe: JDev-unsubscribe at jabber.org[JDev-unsubscribe at jabber.org]
_______________________________________________
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev[http://mail.jabber.org/mailman/listinfo/jdev]
Unsubscribe: JDev-unsubscribe at jabber.org[JDev-unsubscribe at jabber.org]
_______________________________________________
_______________________________________________ JDev mailing list Info: http://mail.jabber.org/mailman/listinfo/jdev[http://mail.jabber.org/mailman/listinfo/jdev] Unsubscribe: JDev-unsubscribe at jabber.org _______________________________________________
More information about the JDev
mailing list