I am having issues in knowing the percentage of a file sent at any point the FileTransferProgressEventArgs event is fired using WinSCP .NET assembly in C#.
The FileProgress returns only 0 or 1, or the documentation said (0-1) which I don't understand. I need to know how much bytes of the file is sent but not 0,1 which i don't understand. I know CPS is the bytes per second but i need more variables.
The method where i increment the progress bar is as below void
SessionFileTransferProgress(object sender, FileTransferProgressEventArgs e)
{
progressBar.Increment((int)e.FileProgress);
}
Its e.FileProgress and e.CPS which I thought could help but seems I'm missing something.