{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1238","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1238/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1238/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1238","id":124593243,"number":1238,"title":"ngFileUpload: Circular reference in config.data.","user":{"login":"diegofc00","id":3629700,"avatar_url":"https://avatars.githubusercontent.com/u/3629700?v=3","gravatar_id":"","url":"https://api.github.com/users/diegofc00","html_url":"https://github.com/diegofc00","followers_url":"https://api.github.com/users/diegofc00/followers","following_url":"https://api.github.com/users/diegofc00/following{/other_user}","gists_url":"https://api.github.com/users/diegofc00/gists{/gist_id}","starred_url":"https://api.github.com/users/diegofc00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegofc00/subscriptions","organizations_url":"https://api.github.com/users/diegofc00/orgs","repos_url":"https://api.github.com/users/diegofc00/repos","events_url":"https://api.github.com/users/diegofc00/events{/privacy}","received_events_url":"https://api.github.com/users/diegofc00/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-02T14:20:17Z","updated_at":"2016-01-02T16:26:19Z","closed_at":"2016-01-02T16:11:39Z","body":"I'm using your lib, and I have a problem...\r\n\r\nngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: file[$parentForm][$success][date][0][$parentForm](anonymous function) @ angular.min.js:107$get @ angular.min.js:80(anonymous function) @ angular.min.js:119$get.n.$eval @ angular.min.js:133$get.n.$digest @ angular.min.js:130$get.n.$apply @ angular.min.js:133(anonymous function) @ angular.min.js:254n.event.dispatch @ jquery.min.js:3n.event.add.r.handle @ jquery.min.js:3\r\nangular.min.js:107 \r\n\r\nTypeError: n.headers is not a function\r\n    at responseError (angular-oauth2.min.js:1)\r\n    at angular.min.js:119\r\n    at n.$get.n.$eval (angular.min.js:133)\r\n    at n.$get.n.$digest (angular.min.js:130)\r\n    at n.$get.n.$apply (angular.min.js:133)\r\n    at HTMLFormElement.<anonymous> (angular.min.js:254)\r\n    at HTMLFormElement.n.event.dispatch (jquery.min.js:3)\r\n    at HTMLFormElement.n.event.add.r.handle (jquery.min.js:3)\r\n\r\n\r\nimplementation\r\n\r\n\t\t\tUpload.upload({\r\n\t\t\t\turl: url,\r\n\t\t\t\tmethod: 'POST',\r\n\t\t\t\tdata: {file: $scope.form.file}\r\n\t\t\t}).then(function (resp) {\r\n\t\t\t\t//console.log('Success ' + resp.config.data.file.name + 'uploaded. Response: ' + resp.data);\r\n\t\t\t\t$location.path('/people');\r\n\t\t\t}, function (resp) {\r\n\t\t\t\tconsole.log('Error status: ' + resp.status);\r\n\t\t\t}, function (evt) {\r\n\t\t\t\tvar progressPercentage = parseInt(100.0 * evt.loaded / evt.total);\r\n\t\t\t\tconsole.log('progress: ' + progressPercentage + '% ' + evt.config.data.file.name);\r\n\t\t\t});\r\n\r\nI'm sorry for boring you, but I don't know what I do.\r\nI made this in a form submit...\r\n"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/168403785","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1238#issuecomment-168403785","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1238","id":168403785,"user":{"login":"diegofc00","id":3629700,"avatar_url":"https://avatars.githubusercontent.com/u/3629700?v=3","gravatar_id":"","url":"https://api.github.com/users/diegofc00","html_url":"https://github.com/diegofc00","followers_url":"https://api.github.com/users/diegofc00/followers","following_url":"https://api.github.com/users/diegofc00/following{/other_user}","gists_url":"https://api.github.com/users/diegofc00/gists{/gist_id}","starred_url":"https://api.github.com/users/diegofc00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegofc00/subscriptions","organizations_url":"https://api.github.com/users/diegofc00/orgs","repos_url":"https://api.github.com/users/diegofc00/repos","events_url":"https://api.github.com/users/diegofc00/events{/privacy}","received_events_url":"https://api.github.com/users/diegofc00/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T16:26:19Z","updated_at":"2016-01-02T16:26:19Z","body":"I'm sorry, inside <form class=\"form-horizontal\" name=\"form\" role=\"form\" method=\"POST\" ng-submit=\"save()\">"}}