{"action":"opened","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/880","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/880/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/880/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/880/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/880","id":95675500,"number":880,"title":"TypeError: undefined is not a function","user":{"login":"marcianosr","id":5365736,"avatar_url":"https://avatars.githubusercontent.com/u/5365736?v=3","gravatar_id":"","url":"https://api.github.com/users/marcianosr","html_url":"https://github.com/marcianosr","followers_url":"https://api.github.com/users/marcianosr/followers","following_url":"https://api.github.com/users/marcianosr/following{/other_user}","gists_url":"https://api.github.com/users/marcianosr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcianosr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcianosr/subscriptions","organizations_url":"https://api.github.com/users/marcianosr/orgs","repos_url":"https://api.github.com/users/marcianosr/repos","events_url":"https://api.github.com/users/marcianosr/events{/privacy}","received_events_url":"https://api.github.com/users/marcianosr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-17T15:09:02Z","updated_at":"2015-07-17T15:09:02Z","closed_at":null,"body":"Hi, \r\n\r\nI'm currently building an app with Meteor-Angular. I'm trying to implement the file upload but I keep getting the following error when I try to upload an image file: \r\n\r\n<pre>TypeError: undefined is not a function\r\n    at ng-file-upload-all.js:579\r\n    at angular.js:9341\r\n    at forEach (angular.js:336)\r\n    at transformData (angular.js:9340)\r\n    at $get.serverRequest (angular.js:10031)\r\n    at processQueue (angular.js:14569)\r\n    at angular.js:14585\r\n    at Scope.$get.Scope.$eval (angular.js:15848)\r\n    at Scope.$get.Scope.$digest (angular.js:15659)\r\n    at Scope.$get.Scope.$apply (angular.js:15953)</pre>\r\n\r\n\r\nHere is my code: \r\n\r\nhtml:\r\n```<div class=\"btn btn-primary\" ngf-select ngf-change=\"upload($files)\">Select File</div>```\r\n\r\njavascript: \r\n```\r\n\t\t$scope.upload = function(files) { \r\n\r\n\t\t\tif (files && files.length) {\r\n\t            for (var i = 0; i < files.length; i++) {\r\n\t                var file = files[i];\r\n\t                console.log(file)\r\n\t                Upload.upload({\r\n\t                    url: '/uploads',\r\n\t                    file: files\r\n\t                }).progress(function (evt) {\r\n\t                    var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);\r\n\t                    $scope.log = 'progress: ' + progressPercentage + '% ' +\r\n\t                                evt.config.file.name + '\\n' + $scope.log;\r\n\t                }).success(function (data, status, headers, config) {\r\n\t                    $timeout(function() {\r\n\t                        $scope.log = 'file: ' + config.file.name + ', Response: ' + JSON.stringify(data) + '\\n' + $scope.log;\r\n\t                    });\r\n\t                });\r\n\t            }\r\n\t        }\r\n\t\t}\r\n```\r\n\r\n\r\n\r\n\r\n\r\nAny idea whats causing it? \r\n\r\n\r\nThanks for reading, "}}