FileTransferStart Event
    
 

Description

Fires when file transfer starts.


Syntax

Private Sub object_FileTransferStart(Contact, File, Action)



The FileTransferStart Event syntax has these parts:

Part Description
object A wodXMPP object.
Contact A XMPPContact object. Reference to contact that is sending/receiving the file. Can be NULL (Nothing in VB).
File A XMPPFile object. Reference to file that is being sent/received.
Action A XMPPActionsEnum enumeration, as described in settings. Allows you to decide wether to allow or deny the file transfer.

Remarks

This event will be triggered when file is about to be transferred. It can be result of your SendFile call, or when remote side initiates file transfer. At this point you can change any File object's properties to tweak transfer the way you need it - such as specifying full path in Name property, change DataIP etc.

 

After this event fires, FileTransferProgress event will be fired several times as file is transferred. At the end of file transfer FileTransferEnd event will be fired.

 

When Contact argument is NULL (Nothing in VB) it means that wodXMPP does not know who is downloading the file. This is typically result of ServeFile method and someone downloading such file.