wodFTPServer ActiveX Control - Progress Event
    
 

Description

Fires during file transfer.


Syntax

Private Sub object_Progress(User, Position, Total)



The Progress Event syntax has these parts:

Part Description
object A wodFTPD object.
User A FtpUser object. Reference to user who is transferring file.
Position A Long value. Current position of file transfer.
Total A Long value. Total size of file that will be transferred, if known.

Remarks

Progress event is fired during file upload or download. You can track and calculate client's speed using this property.

If user is uploading file, its size is not known before upload is completed - thus Total and Position arguments will always contain same value - total number of bytes uploaded so far.

Progress event will be fired until file size exceeds 4.2gb. After that size, Progress64 event will be fired instead.

NOTE: it is possible that Position or Total values become negative - it is because unsigned values are used, but VB (and other environments) expect to see signed values. If this happens, we suggest you call Progress64 event from within Progress event, and apply code as shown in Progress64 help page.