Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
choquito #1
Member since Mar 2013 · 21 posts · Location: Spain
Group memberships: Members
Show profile · Link to this post
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:

 
  1.  ....
  2.  
  3.  private FileTransferManager fm = new FileTransferManager();
  4.  private FileTransferEventArgs ftea;
  5.  
  6.  fm.OnFile += fm_OnFile;
  7.  fm.OnError += fm_OnError;
  8.  fm.OnEnd += fm_OnEnd;
  9.  fm.OnStart += fm_OnStart;
  10.  fm.OnProgress += fm_OnProgress;
  11.  
  12. ....




The component receives de stanza from client:

  1. <iq to="gfiles@ttfiles.xxxx.com" type="set" from="user01@im.xxxx.com/MatriX" id="MX_4" xmlns="jabber:component:accept">
  2.  <si profile="http://jabber.org/protocol/si/profile/file-transfer" xmlns="http://jabber.org/protocol/si" id="9eb975c9-1e6b-473a-bea1-cb5d82948b81">
  3.     <file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="Koala.jpg" size="780831">
  4.       <desc />
  5.     </file>
  6.     <feature xmlns="http://jabber.org/protocol/feature-neg">
  7.       <x xmlns="jabber:x:data" type="form">
  8.         <field type="list-single" var="stream-method">
  9.           <option>
  10.             <value>http://jabber.org/protocol/ibb</value>
  11.           </option>
  12.         </field>
  13.       </x>
  14.     </feature>
  15.  </si>
  16. </iq>


but the fm_OnFile event is not fired.


any idea?


Thanks in advance.
This post was edited 2 times, last on 2014-04-19, 00:35 by choquito.
Avatar
Alex #2
Member since Feb 2003 · 4308 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
the file transfer component is written for client to client communication.
Components normally have no resource, which maybe the reason why it does not work. To get this working in a component you have to make changes in the source codes.

Alex
Avatar
choquito #3
Member since Mar 2013 · 21 posts · Location: Spain
Group memberships: Members
Show profile · Link to this post
Alex, thanks for your quick response.

To get this working in a component you have to make changes in the source codes.

which sources..., sorry but do not understand...
Avatar
Alex #4
Member since Feb 2003 · 4308 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sources of the FileTransfermanager. The FileTransferManager is client to client. It cannot work against a component without major modifications.
This post was edited on 2014-04-19, 00:23 by Alex.
Avatar
choquito #5
Member since Mar 2013 · 21 posts · Location: Spain
Group memberships: Members
Show profile · Link to this post
OK Alex, tomorrow we'll contact by email with you for request pricing for that job

thanks again.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS