Subject: Send file to component
Hi Alex,
I have a component for accept uploaded files from users...but don't works. The init code for fm:
The component receives de stanza from client:
but the fm_OnFile event is not fired.
any idea?
Thanks in advance.
I have a component for accept uploaded files from users...but don't works. The init code for fm:
- ....
- private FileTransferEventArgs ftea;
- fm.OnFile += fm_OnFile;
- fm.OnError += fm_OnError;
- fm.OnEnd += fm_OnEnd;
- fm.OnStart += fm_OnStart;
- fm.OnProgress += fm_OnProgress;
- ....
The component receives de stanza from client:
- <iq to="gfiles@ttfiles.xxxx.com" type="set" from="user01@im.xxxx.com/MatriX" id="MX_4" xmlns="jabber:component:accept">
- <si profile="http://jabber.org/protocol/si/profile/file-transfer" xmlns="http://jabber.org/protocol/si" id="9eb975c9-1e6b-473a-bea1-cb5d82948b81">
- <file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="Koala.jpg" size="780831">
- <desc />
- </file>
- <feature xmlns="http://jabber.org/protocol/feature-neg">
- <x xmlns="jabber:x:data" type="form">
- <field type="list-single" var="stream-method">
- <option>
- <value>http://jabber.org/protocol/ibb</value>
- </option>
- </field>
- </x>
- </feature>
- </si>
- </iq>
but the fm_OnFile event is not fired.
any idea?
Thanks in advance.