{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/776","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/776/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/776/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/776/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/776","id":82447773,"number":776,"title":"Getting TypeError: Illegal invocation with ngf-drop","user":{"login":"skidvd","id":5832513,"avatar_url":"https://avatars.githubusercontent.com/u/5832513?v=3","gravatar_id":"","url":"https://api.github.com/users/skidvd","html_url":"https://github.com/skidvd","followers_url":"https://api.github.com/users/skidvd/followers","following_url":"https://api.github.com/users/skidvd/following{/other_user}","gists_url":"https://api.github.com/users/skidvd/gists{/gist_id}","starred_url":"https://api.github.com/users/skidvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skidvd/subscriptions","organizations_url":"https://api.github.com/users/skidvd/orgs","repos_url":"https://api.github.com/users/skidvd/repos","events_url":"https://api.github.com/users/skidvd/events{/privacy}","received_events_url":"https://api.github.com/users/skidvd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T14:20:04Z","updated_at":"2015-05-29T16:49:44Z","closed_at":null,"body":"I am using version 4.1.4 with the following HTML snippet to support collection of files:\r\n\r\n`\r\n<div id=\"designFileDropArea\" ngf-drop ng-model=\"designFiles\" \r\n                             class=\"col-md-6 dropArea\" ngf-drag-over-class=\"dropHover\" ngf-multiple=\"true\"\r\n                             ngf-allow-dir=\"false\" ngf-accept=\"'*.doc,*.docx,*.xls,*.xlsx,*.pdf'\" ngf-hide-on-drop-not-available=\"true\"\r\n                             style=\"margin: 0em 0em 1em 1em;\">\r\n                            Drop file(s) here <i style=\"color: blue;\" class=\"fa fa-file-word-o\"></i>\r\n                            <i style=\"color: green;\" class=\"fa fa-file-excel-o\"></i>\r\n                            <i style=\"color: red;\" class=\"fa fa-file-pdf-o\"></i>\r\n                        </div>\r\n`\r\n\r\nUnfortunately, this generates errors when dropping a file during assignment to the ng-model:\r\n\r\n`TypeError: Illegal invocation\r\n    at equals (angular.js:1034)\r\n    at equals (angular.js:1019)\r\n    at Scope.$get.Scope.$digest (angular.js:15550)\r\n    at Scope.$get.Scope.$apply (angular.js:15824)\r\n    at angular.js:17580\r\n    at completeOutstandingRequest (angular.js:5370)\r\n    at angular.js:5642(anonymous function) @ angular.js:12221$get @ angular.js:9055$get.Scope.$digest @ angular.js:15574$get.Scope.$apply @ angular.js:15824(anonymous function) @ angular.js:17580completeOutstandingRequest @ angular.js:5370(anonymous function) @ angular.js:5642\r\nangular.js:12221 \r\n\r\nTypeError: Illegal invocation\r\n    at equals (angular.js:1034)\r\n    at equals (angular.js:1019)\r\n    at Scope.$get.Scope.$digest (angular.js:15550)\r\n    at Scope.$get.Scope.$apply (angular.js:15824)\r\n    at NgModelController.$$debounceViewValueCommit (angular.js:24919)\r\n    at NgModelController.$setViewValue (angular.js:24891)\r\n    at ng-file-upload.js:547\r\n    at angular.js:17571\r\n    at completeOutstandingRequest (angular.js:5370)\r\n    at angular.js:5642(anonymous function) @ angular.js:12221$get @ angular.js:9055$get.Scope.$digest @ angular.js:15574$get.Scope.$apply @ angular.js:15824NgModelController.$$debounceViewValueCommit @ angular.js:24919NgModelController.$setViewValue @ angular.js:24891(anonymous function) @ ng-file-upload.js:547(anonymous function) @ angular.js:17571completeOutstandingRequest @ angular.js:5370(anonymous function) @ angular.js:5642\r\nangular.js:12221 \r\n\r\nTypeError: Illegal invocation\r\n    at equals (angular.js:1034)\r\n    at equals (angular.js:1019)\r\n    at Scope.$get.Scope.$digest (angular.js:15550)\r\n    at Scope.$get.Scope.$apply (angular.js:15824)\r\n    at angular.js:17580\r\n    at completeOutstandingRequest (angular.js:5370)\r\n    at angular.js:5642(anonymous function) @ angular.js:12221$get @ angular.js:9055$get.Scope.$digest @ angular.js:15574$get.Scope.$apply @ angular.js:15824(anonymous function) @ angular.js:17580completeOutstandingRequest @ angular.js:5370(anonymous function) @ angular.js:5642\r\n44angular.js:12221 \r\n\r\nTypeError: Illegal invocation\r\n    at equals (angular.js:1034)\r\n    at equals (angular.js:1019)\r\n    at Scope.$get.Scope.$digest (angular.js:15550)\r\n    at Scope.$get.Scope.$apply (angular.js:15824)\r\n    at tick (angular.js:10983)(anonymous function) @ angular.js:12221$get @ angular.js:9055$get.Scope.$digest @ angular.js:15574$get.Scope.$apply @ angular.js:15824tick @ angular.js:10983\r\n`\r\n\r\nWhat am I doing incorrectly?"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/106869077","html_url":"https://github.com/danialfarid/ng-file-upload/issues/776#issuecomment-106869077","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/776","id":106869077,"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-05-29T16:49:44Z","updated_at":"2015-05-29T16:49:44Z","body":"What version of the plugin and angular?\r\nCan you create a jsfiddle showing the error?"}}