{"action":"opened","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1593","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1593/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1593/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1593/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1593","id":162477233,"number":1593,"title":"Invalid file types turn the form invalid","user":{"login":"joaocmfcm","id":1395959,"avatar_url":"https://avatars.githubusercontent.com/u/1395959?v=3","gravatar_id":"","url":"https://api.github.com/users/joaocmfcm","html_url":"https://github.com/joaocmfcm","followers_url":"https://api.github.com/users/joaocmfcm/followers","following_url":"https://api.github.com/users/joaocmfcm/following{/other_user}","gists_url":"https://api.github.com/users/joaocmfcm/gists{/gist_id}","starred_url":"https://api.github.com/users/joaocmfcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaocmfcm/subscriptions","organizations_url":"https://api.github.com/users/joaocmfcm/orgs","repos_url":"https://api.github.com/users/joaocmfcm/repos","events_url":"https://api.github.com/users/joaocmfcm/events{/privacy}","received_events_url":"https://api.github.com/users/joaocmfcm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-27T15:16:15Z","updated_at":"2016-06-27T15:16:15Z","closed_at":null,"body":"So I have this snippet which actually works fine until I add invalid file types. They are not added to the model but they will make the form invalid. I tried put allowInvalid false, ngf-valid-only but none of them works. Always get the form.files.$error = {\"pattern\":true} when adding an invalid file type.\r\nAny clue?\r\n\r\n```\r\n<div name=\"files\" ngf-drop ngf-select ng-model=\"ui.files\" class=\"drop-box\"  \r\n   ngf-model-options=\"{allowInvalid: false}\"\r\n   ngf-drag-over-class=\"{accept:'dragover', reject: 'reject-dragover'}\" \r\n   ngf-multiple=\"true\" ngf-allow-dir=\"true\"\r\n   accept=\"{{ui.validFileTypes}}\" ngf-keep=\"true\" ng-valid-only \r\n   ngf-change=\"filesChanged()\"\r\n   ngf-pattern=\"ui.validFileTypes\" required>\r\n</div>\r\n```"}}
{"actor":{"display_login":"joaocmfcm"}}