{"action":"opened","issue":{"url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/582","labels_url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/582/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/582/comments","events_url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/582/events","html_url":"https://github.com/danialfarid/angular-file-upload/issues/582","id":58865213,"number":582,"title":"ng-accept does not work","user":{"login":"Caprichoso","id":11189588,"avatar_url":"https://avatars.githubusercontent.com/u/11189588?v=3","gravatar_id":"","url":"https://api.github.com/users/Caprichoso","html_url":"https://github.com/Caprichoso","followers_url":"https://api.github.com/users/Caprichoso/followers","following_url":"https://api.github.com/users/Caprichoso/following{/other_user}","gists_url":"https://api.github.com/users/Caprichoso/gists{/gist_id}","starred_url":"https://api.github.com/users/Caprichoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Caprichoso/subscriptions","organizations_url":"https://api.github.com/users/Caprichoso/orgs","repos_url":"https://api.github.com/users/Caprichoso/repos","events_url":"https://api.github.com/users/Caprichoso/events{/privacy}","received_events_url":"https://api.github.com/users/Caprichoso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T08:10:29Z","updated_at":"2015-02-25T08:10:29Z","closed_at":null,"body":"I want to let the user only upload *.txt files. Whatever tpye of file I am dragging, there will always be the accept-class (= \"dragover\") with a green border but NEVER the reject-class (= \"dragover-err\"). Does anybody see the error?\r\n\r\n <div ng-file-drop ng-file-select ng-model=\"files\" class=\"drop-box\" \r\n        drag-over-class=\"dragover\" ng-multiple=\"true\" allow-dir=\"true\"\r\n         accept=\"'.txt'\" drag-over-class=\"{accept:'dragover', reject:'dragover-err', delay:100}\">Drop pdfs or images here or click to upload</div>\r\n\r\nI adapted the sample fiddle with my dropbox markup:\r\nhttp://jsfiddle.net/nmdcwf3w/166/"}}