{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1405","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1405/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1405/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1405/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1405","id":139012342,"number":1405,"title":"Get single file upload errors","user":{"login":"LeleDev","id":7249092,"avatar_url":"https://avatars.githubusercontent.com/u/7249092?v=3","gravatar_id":"","url":"https://api.github.com/users/LeleDev","html_url":"https://github.com/LeleDev","followers_url":"https://api.github.com/users/LeleDev/followers","following_url":"https://api.github.com/users/LeleDev/following{/other_user}","gists_url":"https://api.github.com/users/LeleDev/gists{/gist_id}","starred_url":"https://api.github.com/users/LeleDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeleDev/subscriptions","organizations_url":"https://api.github.com/users/LeleDev/orgs","repos_url":"https://api.github.com/users/LeleDev/repos","events_url":"https://api.github.com/users/LeleDev/events{/privacy}","received_events_url":"https://api.github.com/users/LeleDev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-07T15:49:08Z","updated_at":"2016-03-07T16:07:46Z","closed_at":"2016-03-07T16:07:46Z","body":"I've been struggling for hours to catch errors with single file upload, but no success.\r\n\r\nWith multiple file upload it's really simple: I just set the attribute `ngf-select=\"uploadFiles($files, $invalidFiles)`, and declare in the controller the following function:\r\n```\r\nscope.uploadFiles = function(files, errFiles) {\r\n       console.log(errFiles);\r\n}\r\n```\r\n\r\nI can't find a way instead of catching errors for single file uploads; $invalidFiles or $invalidFile parameters in uploadFile function are always undefined, and `ngf-model-invalid` attribute works only with multiple file uploads.\r\n\r\nHow can I catch errors from single file upload inputs then?\r\nThank you in advance"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/193317762","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1405#issuecomment-193317762","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1405","id":193317762,"user":{"login":"LeleDev","id":7249092,"avatar_url":"https://avatars.githubusercontent.com/u/7249092?v=3","gravatar_id":"","url":"https://api.github.com/users/LeleDev","html_url":"https://github.com/LeleDev","followers_url":"https://api.github.com/users/LeleDev/followers","following_url":"https://api.github.com/users/LeleDev/following{/other_user}","gists_url":"https://api.github.com/users/LeleDev/gists{/gist_id}","starred_url":"https://api.github.com/users/LeleDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeleDev/subscriptions","organizations_url":"https://api.github.com/users/LeleDev/orgs","repos_url":"https://api.github.com/users/LeleDev/repos","events_url":"https://api.github.com/users/LeleDev/events{/privacy}","received_events_url":"https://api.github.com/users/LeleDev/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T16:07:46Z","updated_at":"2016-03-07T16:07:46Z","body":"Ok, I've found the error, pardon"}}