{"action":"created","issue":{"url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/43","repository_url":"https://api.github.com/repos/cloudinary/cloudinary_npm","labels_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/43/comments","events_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/43/events","html_url":"https://github.com/cloudinary/cloudinary_npm/issues/43","id":53927163,"number":43,"title":"How to subscribe to finish event in cloudinary.uploader.upload_stream ?","user":{"login":"skotchio","id":1432812,"avatar_url":"https://avatars.githubusercontent.com/u/1432812?v=3","gravatar_id":"","url":"https://api.github.com/users/skotchio","html_url":"https://github.com/skotchio","followers_url":"https://api.github.com/users/skotchio/followers","following_url":"https://api.github.com/users/skotchio/following{/other_user}","gists_url":"https://api.github.com/users/skotchio/gists{/gist_id}","starred_url":"https://api.github.com/users/skotchio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skotchio/subscriptions","organizations_url":"https://api.github.com/users/skotchio/orgs","repos_url":"https://api.github.com/users/skotchio/repos","events_url":"https://api.github.com/users/skotchio/events{/privacy}","received_events_url":"https://api.github.com/users/skotchio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudinary/cloudinary_npm/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-01-09T23:11:49Z","updated_at":"2016-10-25T22:39:19Z","closed_at":"2016-10-25T22:39:19Z","body":"I need to use event subscription instead of callback when using `cloudinary.uploader.upload_stream`:\r\n\r\n    var stream = cloudinary.uploader.upload_stream(function(result) { \r\n        console.log(result);\r\n    });\r\n\r\nSomething like the following:\r\n\r\n    var stream = cloudinary.uploader.upload_stream();\r\n    stream.on('finish', function (result) {\r\n       console.log(result)\r\n    });\r\n\r\nBut it seems `finish` event does not exists because console.log doesn't get executed."},"comment":{"url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/comments/256198772","html_url":"https://github.com/cloudinary/cloudinary_npm/issues/43#issuecomment-256198772","issue_url":"https://api.github.com/repos/cloudinary/cloudinary_npm/issues/43","id":256198772,"user":{"login":"taragano","id":4972147,"avatar_url":"https://avatars.githubusercontent.com/u/4972147?v=3","gravatar_id":"","url":"https://api.github.com/users/taragano","html_url":"https://github.com/taragano","followers_url":"https://api.github.com/users/taragano/followers","following_url":"https://api.github.com/users/taragano/following{/other_user}","gists_url":"https://api.github.com/users/taragano/gists{/gist_id}","starred_url":"https://api.github.com/users/taragano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taragano/subscriptions","organizations_url":"https://api.github.com/users/taragano/orgs","repos_url":"https://api.github.com/users/taragano/repos","events_url":"https://api.github.com/users/taragano/events{/privacy}","received_events_url":"https://api.github.com/users/taragano/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T22:39:19Z","updated_at":"2016-10-25T22:39:19Z","body":"Closing this issue due to the time elapsed. Please feel free to either re-open the issue, contact our support http://support.cloudinary.com or [create a new ticket](https://support.cloudinary.com/hc/en-us/requests/new) if you have any additional issues."}}
{"actor":{"display_login":"taragano"}}