CFtpServer::OnUpload Method  
 
virtual void OnUpload(
  UINT nClientId,  
  LPCTSTR lpszFileName,  
  DWORD dwTimeElapsed,  
  ULARGE_INTEGER uiBytesCopied  
);

A virtual method that is invoked after the client has successfully uploaded a file to the server.

Parameters

nClientId
An unsigned integer which uniquely identifies the client session.
lpszFileName
A null-terminated string that specifies the local path name of the file that was uploaded to the server. The path will always include the disk volume or share name, and the path delimiter will always be the backslash character.
dwTimeElased
An unsigned integer value that specifies the number of milliseconds that it took to complete the file transfer.
uiBytesCopied
An unsigned 64-bit integer value that specifies the number of bytes of data that was uploaded by the client.

Return Value

None.

Remarks

The OnUpload event handler is invoked after the client has successfully uploaded a file to the server using the APPE, STOR or STOU command. To implement an event handler, the application should create a class derived from the CFtpServer class, and then override this method.

The ULARGE_INTEGER structure is actually a union that is used to represent a 64-bit value. If the compiler has built-in support for 64-bit integers, use the QuadPart member to access the 64-bit integer value. Otherwise, use the LowPart and HighPart members to access the value.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: csftsv11.lib
Unicode: Implemented as Unicode and ANSI versions

See Also

OnCommand, OnDownload