I am using FileServer as an SFTP server. When a user uploads a file, the
CreateFile(DirectoryNode parent, FileNode child) method—implemented via ReadWriteFileSystemProvider, gets triggered.
Within the child object, I can access details such as the file path and filename. However, the length parameter is always 0, even when the actual file size is greater than 0 bytes.
On the other hand, once the upload is completed, the FileUploaded event is triggered, where FileTransferredEventArgs.BytesTransferred correctly provides the actual file size.
My question:
How can I obtain the actual file size before the file data transfer begins in FileServer (SFTP)?