[jdev] File Transfer and custom attributes

Matías Rojas rojas at nimbuzz.com
Wed Mar 5 09:27:26 CST 2008

Thanks a lot, I'll use DataForm inside <file /> to send my custom fields.

-----Original Message-----
From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf Of
Peter Saint-Andre
Sent: miércoles, 05 de marzo de 2008 04:21 p.m.
To: Jabber/XMPP software development list
Subject: Re: [jdev] File Transfer and custom attributes

Matías Rojas wrote:
> Hi,
> I’m using Stream Initiation (XEP-0095) and File Transfer (XEP-0096) to
> a file, but I need to include additional information about the file I’m
> sending.

I'm curious: what information do you want to include? If it is of
general interest, perhaps we should update XEP-0096 to include it.

> What is the best way to send custom attributes of a file?
> Should I use DataForm?

Sure, that might work...

<iq type='set' id='offer1' to='receiver at jabber.org/resource'>
  <si xmlns='http://jabber.org/protocol/si'
    <file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
      <x xmlns='jabber:x:data' type='result'>
        <field var='FORM_TYPE' type='hidden'>
      <field var='your-first-private-field'>
      <field var='your-second-private-field'>
    <feature xmlns='http://jabber.org/protocol/feature-neg'>
      <x xmlns='jabber:x:data' type='form'>
        <field var='stream-method' type='list-single'>

More information about the JDev mailing list