This post is more than 5 years old
14 Posts
0
1622
Atmos-php live progression of upload and download
Hello All,
Is there a function to call/set in Atmos-php to display live progression status of upload and download task?
This is useful to provide a visible feedback to user about their transfer condition/state.
Notably there are functions such as ProgressListener, SetListener, notifyProgress and have no clue how to leverage on them.
Is anyone implemented something similar and able to share the approach here? Appreciate that!
Thank you!
Jason Cwik
JasonCwik
281 Posts
1
May 9th, 2013 08:00
Here's a PHP sample that will print progress to the console. Note that the first time your notifyProgress gets called the array will only contain an objectId. On subsequent calls it will include 'currentBytes', 'totalBytes', and 'startTime'.
Running this sample will produce output like this:
HybridCloud
14 Posts
0
May 9th, 2013 09:00
Thanks Jason,
Indeed this is very helpful sample code and really appreciate it!
Thanks a million!