Is there any way to track/know how the download of a file over FTP is doing? I was hoping there would be Script event or something so I could know a large file transfer wasn't hung (StatusMessage.Progress doesn't help in the OnStatusMessage event)..
When using the FTP Actions, if you go to the Run tab, you should see an additional progress bar that displays the percentage of the download that has completed. Underneath this you can see the speed figures and the rate of transfer.
I was hoping there was a way of grabbing progress information programatically, so I can have the script self monitor and correct itself if there are problems... TJ
Unfortunately there is no way to get this information programatically. A script event that triggered every time the download status progressed would add too much overhead to this operation.
Even a timed, long duration event? Even one that triggered every 5 seconds would be ok by me. The problem is when downloading a large file you have no idea (or indication) that the download is processing or hung.
Case in point I have a script that downloads a >600MB XML file, and often I'm just about to kill the script assuming its nto working... I don't need anything as fine as download speeds etc. but something that triggers an event every x seconds or updates a var that I can monitor in a different thread or something would be nice...
I just had a look at this. The api call to download the file is blocking, so the event would need to be fired from another thread, not a simple change (threading within actions is something we tend to avoid where possible). I think we may be able to add some sort of hang detection but it will need some serious thought and research. I will add it to the todo list.
Thanks, I appreciate it, but its by no means the most important thing on the todo list I'm sure. I appreciate you taking the time to look into it though...