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

Description

This event is triggered right before a file starts being received from the FTP server.

Your event handler for this event can change the sLocalFilename parameter to rename the file, or even change its destination on the local system.

This event is not triggered for when using the ReceiveMemoryFile method.

Parameters 

Parameter Description
sRemoteFilename  The remote file being received.
sLocalFilename  The path and filename of the file on the local system.
lFileSize  The size of the file as reported by the FTP server.

 

Declaration (event)  

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

Declaration (interface implementation)  

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

See also

File size workarounds