{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/389","labels_url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/389/comments","events_url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/389/events","html_url":"https://github.com/danialfarid/angular-file-upload/issues/389","id":47863292,"number":389,"title":"Two different file upload on the same controller","user":{"login":"JeffGreat","id":850530,"avatar_url":"https://avatars.githubusercontent.com/u/850530?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffGreat","html_url":"https://github.com/JeffGreat","followers_url":"https://api.github.com/users/JeffGreat/followers","following_url":"https://api.github.com/users/JeffGreat/following{/other_user}","gists_url":"https://api.github.com/users/JeffGreat/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffGreat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffGreat/subscriptions","organizations_url":"https://api.github.com/users/JeffGreat/orgs","repos_url":"https://api.github.com/users/JeffGreat/repos","events_url":"https://api.github.com/users/JeffGreat/events{/privacy}","received_events_url":"https://api.github.com/users/JeffGreat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-11-05T17:23:26Z","updated_at":"2015-01-05T11:12:22Z","closed_at":null,"body":"When using the directive twice on a page with two different upload method it doesn't work. for instance the first directive calls uploadPicture($files) and the second one uploadDocument($files).\r\nActually angular-file-upload only consider the second method for both directive element. This is due to directive scope which is global. \r\nTo avoid this behaviour directive must have the \"scope : true\" parameter. I'll post a pull request."},"comment":{"url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/comments/68695124","html_url":"https://github.com/danialfarid/angular-file-upload/issues/389#issuecomment-68695124","issue_url":"https://api.github.com/repos/danialfarid/angular-file-upload/issues/389","id":68695124,"user":{"login":"JeffGreat","id":850530,"avatar_url":"https://avatars.githubusercontent.com/u/850530?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffGreat","html_url":"https://github.com/JeffGreat","followers_url":"https://api.github.com/users/JeffGreat/followers","following_url":"https://api.github.com/users/JeffGreat/following{/other_user}","gists_url":"https://api.github.com/users/JeffGreat/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffGreat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffGreat/subscriptions","organizations_url":"https://api.github.com/users/JeffGreat/orgs","repos_url":"https://api.github.com/users/JeffGreat/repos","events_url":"https://api.github.com/users/JeffGreat/events{/privacy}","received_events_url":"https://api.github.com/users/JeffGreat/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T11:12:22Z","updated_at":"2015-01-05T11:12:22Z","body":"Ok, i'll try to check that asap"}}