smcone has asked for the wisdom of the Perl Monks concerning the following question:

I have a win32::gui app that involves transferring files by ftp in background threads. I have seen some samples here on how to monitor'chunks' of data when downloading - to be able to update a progress bar or some sort to show the end user, but I cant seem to find how to do this using "upload". My end goal is to indicate to the user a progress bar of an upload process, or the raw bytes uploaded in a pop-up status window that already exists.. Can anyone help me with how I could go about doing this? Steve

Replies are listed 'Best First'.
Re: Win32::gui monitor upload
by jplindstrom (Monsignor) on Mar 30, 2005 at 13:16 UTC
    See Re: Win32::GUI and Focus Problems for how to do it in general.

    I don't know what module you use for FTP:ing, but Net::Ftp doesn't seem to support callbacks. Maybe if you write a subclass that hook into the download loop?

    /J

      Thanks - I actually saw your sample code for download and monitoring in a loop.

      Unfortunately - im not at the skill level you are yet - to know how to work with a subclass..

      Alas.. baby steps - I will give it a shot.

      Steve