Welcome Guest Search | Active Topics | Sign In | Register

ProgressBar & FTP File Transfer Progress Options
chrisdoan
Posted: Friday, November 26, 2010 4:39:44 PM
Rank: Newbie
Groups: Member

Joined: 11/26/2010
Posts: 3
Please correct me if I'm wrong: The ProgressBar will not work for tasks such as FTP file transfer. The reason is in order to use it, the task's progress must be reported inside the RunTask event. However, tasks such as FTP file transfer's progress can only be intercepted from their own external events (such as ftpConnection_BytesTransferred.)

Is it possible to use the ProgressBar in these scenarios at all? Has anyone successfully used the ProgressBar with FTP file transfer outside of the RunTask event?

[ADMIN]: You can use different font or color to highlight important information in your post, however please do not use excessive font on the whole post. Excessive font in your original post has been removed.
eo_support
Posted: Saturday, November 27, 2010 8:32:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You are correct about the RunTask event. The ProgressBar does not move by itself so you must drive it inside RunTask. However it is possible to do the actual transfer (or any other task) inside a separate thread and then keep polling/sleep inside RunTask until your worker thread is done.

Thanks!
chrisdoan
Posted: Saturday, November 27, 2010 2:20:00 PM
Rank: Newbie
Groups: Member

Joined: 11/26/2010
Posts: 3
Sorry about the font size! I wasn't aware of your sensitivity about text appearances....

Unfortunately, some FTP packages such as edtFTPPro's worker thread only reports the bytes transfer count inside it's own BytesTransferred event. I've initiate the file transfer from inside RunTask but control would not return from the FTP call until the transfer is completed at 100%. Therefore, The ProgressBar is useless in this case!

I need a ProgressBar for FTP upload and would purchase one for a reasonable price, not the $100 for the AjaxUploader since I've already got the file transfer code and only need a progress bar.

Thanks!

eo_support
Posted: Saturday, November 27, 2010 2:36:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

No problem about the font size. It's not that we are sensitive about font size, but our users may be sensitive about that. We moderate the forum so that it can offer our users a consistent and pleasant experience.

As already mentioned in our previous post, you are correct about the RunTask event. Because ProgressBar does not automatically figure out the progress information for you, you must provide the progress information one way or another. If your FTP upload code is a single blocking call, then you are already at a dead end and the progress bar will not work for you.

AJAXUploader is something else. AJAXUploader goes through HTTP, not FTP. Also the transfer occurs between client browser and your server, not between your server and another party. So it's something totally different.

Hope this helps.

Thanks
chrisdoan
Posted: Sunday, November 28, 2010 11:46:01 PM
Rank: Newbie
Groups: Member

Joined: 11/26/2010
Posts: 3
OK. I guess the ProgressBar won't work for my FTP uploading code then :-(

I'd like to purchase your EO.Web CallBack and AaxUploader but these products are priced beyond budgets for casual home users like me!

If you have special discount prices for home users, please let me know.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.