Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.1k views
in .NET FTP by (120 points)
Hi,

I need to find out if there is a way to attach a normal progress bar to the UploadMultiple function.

I have a progress bar in place that updates each time a directory has finished uploading... what i need is something that will either grab the total size of the directory and files to be uploaded and run a progress bar at regular intevals of the upload. Or something that flashes/scrolls/moves to say that something is actually happening...

At the moment when uploading things, for example a 500Mb directory of files with sub-directories... this takes around 20 minutes to upload, and i am not sure how to place something on the form to show that it is actually uploading.

Thanks

1 Answer

0 votes
by (162k points)
I suppose that one approach might be to try to work out the total size of a directory and then keep a cumulative track of the bytes transferred.

If you are uploading a directory, you could do that now - you can work out the local directory size that is being uploaded, and then use the BytesTransferred event to be keep a cumulative total of bytes transferred. This would allow you to always know the percentage that has been transferred.

Categories

...