Xceed FTP Library Documentation
SendingFile event
XceedFtp control reference > Events > SendingFile event

Description

This event is triggered whenever the library is about to send a file to the remote server.

If the sLocalFilename parameter is empty, it means you are sending a file directly from memory. You can change the sRemoteFilename parameter if you want to rename the file or to change the location of the file where it will be placed on the FTP server. You can also empty this parameter if you want the FTP server to select a unique filename in the FTP server's current working folder . The unique filename chosen by the FTP server would then be reported by the FileTransferStatus event.

Parameters 

Parameter Description
sLocalFilename  The path and filename of the local file about to be sent.
sRemoteFilename  The path and filename of the remote file to receive to.
lFileSize  The size of the local file (bytes).

 

Declaration (event)  

void SendingFile( [in] BSTR sLocalFilename, [in, out] BSTR* sRemoteFilename, [in] long lFileSize ); 

Declaration (interface implementation)  

HRESULT SendingFile( [in] BSTR sLocalFilename, [in, out] BSTR* sRemoteFilename, [in] long lFileSize );