Internet Direct (Indy) Version 9.0.2 Beta
TIdFTPServer.OnGetFileSize
Allows the server to retrieve the size for a file in the server file system.

property OnGetFileSize: TOnGetFileSizeEvent;
Description
OnGetFileSize is a TOnGetFileSizeEvent property that represents the event handler signalled when the FTP server needs to determine the size of a file on the server file system. OnGetFileSize allows the FTP server implementation to perform the platform-specific API calls needed to retrieve the size of the file specified in AFilename.

OnGetFileSize is used when the command event handler is executed after receiving the FTP SIZE command verb from the client connection in ASender. AFileSize will contain the number of bytes in the file specified by AFilename, or -1 when the file size cannot be determined.