Back to product page

BytesUpload property

Holds total number of bytes user uploaded.


A Long value.


  • Basic
object.BytesUpload [= value]  
The BytesUpload(object,value) syntax has these parts:
objectAn expression evaluating to an object of type SSHUser.
valueA Long value.


From the time user connects to your server, up to time you're accessing this property, it will keep (and regularly increase) total number of bytes uploaded by connected user. This value can be used for some statistical or similar purposes.

You can reset this value to 0 at any time, or set it to any other value at any time. For instance, if you want to memory total uploaded bytes across all the sessions by the user, you should store this value to your database when user disconnects, and then take it back from database and put to this property when user logs in.

Note that this value specifies total number of bytes in unencrypted form. Additional data can be added by the client in each packet, such as packet information, digest byte array etc. , but this is not added to BytesUpload property.