Support for number of bytes sent via PutFile(Stream)

Advertisement

chrisCT
Joined:
Posts:
2

Support for number of bytes sent via PutFile(Stream)

When uploading a stream with PutFile(), FileTransferProgressEventArgs only reports that FileProgress is 1 (100%) no matter how much has been sent. Are there plans to support progress tracking with stream transfers? If not, could you point me in the right direction as far as exposing something in the source code for my own purposes?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Support for number of bytes sent via PutFile(Stream)

In principle, WinSCP cannot known what percentage of data that was transferred, as the Stream size might be unknown. If you know the size, you can monitor amount of data that WinSCP read from the Stream and calculate the percentage yourself.
Though I'll look into it anyway.

Reply with quote

Advertisement

You can post new topics in this forum