{"action":"reopened","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/891","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/891/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/891/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/891/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/891","id":96897668,"number":891,"title":"ng-file-upload calling twice the service and the  ngf-accept=\"'.csv'\" attribute is not working","user":{"login":"HaythemJ","id":9905290,"avatar_url":"https://avatars.githubusercontent.com/u/9905290?v=3","gravatar_id":"","url":"https://api.github.com/users/HaythemJ","html_url":"https://github.com/HaythemJ","followers_url":"https://api.github.com/users/HaythemJ/followers","following_url":"https://api.github.com/users/HaythemJ/following{/other_user}","gists_url":"https://api.github.com/users/HaythemJ/gists{/gist_id}","starred_url":"https://api.github.com/users/HaythemJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaythemJ/subscriptions","organizations_url":"https://api.github.com/users/HaythemJ/orgs","repos_url":"https://api.github.com/users/HaythemJ/repos","events_url":"https://api.github.com/users/HaythemJ/events{/privacy}","received_events_url":"https://api.github.com/users/HaythemJ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-23T20:23:37Z","updated_at":"2015-07-24T15:03:51Z","closed_at":null,"body":"I am facing some problems when using this module and I hope that you will be able to help me:\r\n\r\nHere is my code: I want to upload only csv files\r\n\r\n                <button type=\"button\" class=\"btn btn-info\" ngf-select ngf-change=\"upload($file)\" ngf-accept=\"'.csv'\" ngf-multiple=\"false\">Importer fichier</button>\r\n\r\n\r\n                $scope.upload = function (file) {\r\n                    Upload.upload({\r\n                        url: 'http://localhost:20120/api/Context/UploadFile',\r\n                        file: file\r\n                    }).progress(function (evt) {\r\n                        var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);\r\n                        console.log('progress: ' + progressPercentage + '% ');\r\n                    }).success(function (data, status, headers, config) {\r\n                        console.log('success upload file ');\r\n                    }).error(function (data, status, headers, config) {\r\n                        console.log('error status: ' + status);\r\n                    })\r\n                           \r\n        };\r\n\r\nHere I am facing 2 problems:\r\n\r\n1/ The client is calling the service twice. the first one is when I click the button and the second one when I select the file\r\n\r\n2/ The filter on the csv files is not applied as mentioned in the ngf-accept=\"'.csv'\" attribute.\r\n\r\nThank you in advance for your support.\r\n"}}