How to track progress using eventHandlers and uploadEventHandlers in angularjs 1.5.5 with $http or $resource?
<p>I am trying to strictly adhere to angularjs code using $http or $resource to do file upload.</p>

<pre><code>var uploadData = new FormData();
uploadData.append('file', obj.lfFile);
var fileData = angular.toJson({
    'FileName': obj.lfFile.name,
    'FileSize': obj.lfFile.size
});
uploadData.append('fileData', fileData)

$http({
    method: 'POST',
    url: vm.uploadPath,
    headers: {
        'Content-Type': undefined,
        'UserID': vm.folder.UserID,
        'ComputerID': vm.folder.ComputerID,
        'KeepCopyInCloud': vm.keepCopyInCloud,
        'OverWriteExistingFile': vm.overwriteExistingFile,
        'RootFileID': vm.folder.RootFileID,
        'FileName': obj.lfFile.name,
        'FileSize': obj.lfFile.size
    },
    eventHandlers: {
        progress: function(c) {
            console.log('Progress -&gt; ' + c);
            console.log(c);
        }
    },
    uploadEventHandlers: {
        progress: function(e) {
            console.log('UploadProgress -&gt; ' + e);
            console.log(e);
        }
    },
    data: uploadData,
    transformRequest: angular.identity
}).success(function(data) {
    console.log(data);
}).error(function(data, status) {
    console.log(data);
    console.log(status);
});
</code></pre>

<p>The events are not fired at all . What am i missing ? </p>

<p>References</p>

<ol>
<li><a href="https://github.com/angular/angular.js/issues/14436" rel="nofollow">https://github.com/angular/angular.js/issues/14436</a></li>
<li><a href="https://github.com/angular/angular.js/pull/11547" rel="nofollow">https://github.com/angular/angular.js/pull/11547</a></li>
</ol>