{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1159","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1159/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1159/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1159/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1159","id":118906146,"number":1159,"title":"Progress function not working","user":{"login":"bakgat","id":2185099,"avatar_url":"https://avatars.githubusercontent.com/u/2185099?v=3","gravatar_id":"","url":"https://api.github.com/users/bakgat","html_url":"https://github.com/bakgat","followers_url":"https://api.github.com/users/bakgat/followers","following_url":"https://api.github.com/users/bakgat/following{/other_user}","gists_url":"https://api.github.com/users/bakgat/gists{/gist_id}","starred_url":"https://api.github.com/users/bakgat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakgat/subscriptions","organizations_url":"https://api.github.com/users/bakgat/orgs","repos_url":"https://api.github.com/users/bakgat/repos","events_url":"https://api.github.com/users/bakgat/events{/privacy}","received_events_url":"https://api.github.com/users/bakgat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-25T19:25:41Z","updated_at":"2015-12-01T18:23:03Z","closed_at":"2015-11-26T21:27:44Z","body":"I'll try to reproduce my code in short\r\nI'm using ngFileUpload 10.0.2\r\n\r\nI'm loading the script with ng-file-upload-all.min.js\r\n\r\nThis is in my controller\r\n```javascript\r\n           if (files && files.length) {\r\n                Upload.upload({\r\n                    url: 'api/upload',\r\n                    data: {file: files},\r\n                    headers: {'X-CSRF-TOKEN': common.csrfToken()}\r\n                }).then(function (response) {\r\n                    angular.forEach(response.data, function (asset) {\r\n                        $scope.files.unshift(asset);\r\n                    });\r\n                    console.log('Success ' + response.data[0].name + ' uploaded. Response: ' + response.data);\r\n                }, function (resp) {\r\n                    console.log('Error status: ' + resp.status);\r\n                }, function (evt) {\r\n                    var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);\r\n                    $scope.progress = progressPercentage;\r\n                    console.log('progress: ' + progressPercentage + '% ' + evt.config.data.file.name);\r\n                });\r\n```\r\nProgress function is never called. The rest is working fine."},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/161054036","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1159#issuecomment-161054036","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1159","id":161054036,"user":{"login":"danialfarid","id":1676054,"avatar_url":"https://avatars.githubusercontent.com/u/1676054?v=3","gravatar_id":"","url":"https://api.github.com/users/danialfarid","html_url":"https://github.com/danialfarid","followers_url":"https://api.github.com/users/danialfarid/followers","following_url":"https://api.github.com/users/danialfarid/following{/other_user}","gists_url":"https://api.github.com/users/danialfarid/gists{/gist_id}","starred_url":"https://api.github.com/users/danialfarid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danialfarid/subscriptions","organizations_url":"https://api.github.com/users/danialfarid/orgs","repos_url":"https://api.github.com/users/danialfarid/repos","events_url":"https://api.github.com/users/danialfarid/events{/privacy}","received_events_url":"https://api.github.com/users/danialfarid/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T18:23:03Z","updated_at":"2015-12-01T18:23:03Z","body":"@Gompje\r\nYou can change the upload url in your code to the demo page upload url: https://angular-file-upload-cors-srv.appspot.com/upload and see if you are capturing the progress correctly on the client side. Then you would be sure the problem is the server side."}}