I'm using angular-file-upload available here: https://github.com/danialfarid/angular-file-upload. As you can see in the example furnished on the same page, file data is posted to backend from a controller using the directives made available.
When I implemented the code however I moved the file posting to a service as that would allow me to re-use the functionality & feels the correct way(disagree?). Everything works fine except that I'm unable to figure out how to send the data from the .progress(function(evt)){}
... function that tracks file upload completion status to the controller and respectively echo it on the html page.
Using the .then
I can get the final success response I guess but how about this progress data?
Am I missing something very simple here? How to get this done?