|
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.
|
|
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!
|
|
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!
|
|
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
|
|
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
|
|