{"action":"created","issue":{"url":"https://api.github.com/repos/refile/refile/issues/255","labels_url":"https://api.github.com/repos/refile/refile/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/refile/refile/issues/255/comments","events_url":"https://api.github.com/repos/refile/refile/issues/255/events","html_url":"https://github.com/refile/refile/issues/255","id":82913459,"number":255,"title":"The upload:complete event returns 1 for one or more uploads","user":{"login":"abitdodgy","id":545430,"avatar_url":"https://avatars.githubusercontent.com/u/545430?v=3","gravatar_id":"","url":"https://api.github.com/users/abitdodgy","html_url":"https://github.com/abitdodgy","followers_url":"https://api.github.com/users/abitdodgy/followers","following_url":"https://api.github.com/users/abitdodgy/following{/other_user}","gists_url":"https://api.github.com/users/abitdodgy/gists{/gist_id}","starred_url":"https://api.github.com/users/abitdodgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abitdodgy/subscriptions","organizations_url":"https://api.github.com/users/abitdodgy/orgs","repos_url":"https://api.github.com/users/abitdodgy/repos","events_url":"https://api.github.com/users/abitdodgy/events{/privacy}","received_events_url":"https://api.github.com/users/abitdodgy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-30T21:08:43Z","updated_at":"2015-06-01T19:47:44Z","closed_at":"2015-06-01T07:27:04Z","body":"The following seems to always be logging `1` regardless of the number of uploads. This means we can't listen to the complete event to enable disabled buttons.\r\n\r\n```javascript\r\n$(document).on('upload:complete', 'form', function(e) {\r\n  console.log( $(this).find('input.uploading').length );\r\n});\r\n```\r\n\r\nI'm using the latest Chrome on OSX Yosemite, and the master branch of Refile."},"comment":{"url":"https://api.github.com/repos/refile/refile/issues/comments/107683305","html_url":"https://github.com/refile/refile/issues/255#issuecomment-107683305","issue_url":"https://api.github.com/repos/refile/refile/issues/255","id":107683305,"user":{"login":"abitdodgy","id":545430,"avatar_url":"https://avatars.githubusercontent.com/u/545430?v=3","gravatar_id":"","url":"https://api.github.com/users/abitdodgy","html_url":"https://github.com/abitdodgy","followers_url":"https://api.github.com/users/abitdodgy/followers","following_url":"https://api.github.com/users/abitdodgy/following{/other_user}","gists_url":"https://api.github.com/users/abitdodgy/gists{/gist_id}","starred_url":"https://api.github.com/users/abitdodgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abitdodgy/subscriptions","organizations_url":"https://api.github.com/users/abitdodgy/orgs","repos_url":"https://api.github.com/users/abitdodgy/repos","events_url":"https://api.github.com/users/abitdodgy/events{/privacy}","received_events_url":"https://api.github.com/users/abitdodgy/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T19:47:44Z","updated_at":"2015-06-01T19:47:44Z","body":"I can confirm that this works. I actually made the same fix as you did and got it working. I should have made a pull request, I guess. Thanks!"}}