{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/multer/issues/81","labels_url":"https://api.github.com/repos/expressjs/multer/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/multer/issues/81/comments","events_url":"https://api.github.com/repos/expressjs/multer/issues/81/events","html_url":"https://github.com/expressjs/multer/pull/81","id":50904353,"number":81,"title":"Include request, response objects in arguments to onFileUploadStart etc.","user":{"login":"juliangoacher","id":113835,"avatar_url":"https://avatars.githubusercontent.com/u/113835?v=3","gravatar_id":"","url":"https://api.github.com/users/juliangoacher","html_url":"https://github.com/juliangoacher","followers_url":"https://api.github.com/users/juliangoacher/followers","following_url":"https://api.github.com/users/juliangoacher/following{/other_user}","gists_url":"https://api.github.com/users/juliangoacher/gists{/gist_id}","starred_url":"https://api.github.com/users/juliangoacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliangoacher/subscriptions","organizations_url":"https://api.github.com/users/juliangoacher/orgs","repos_url":"https://api.github.com/users/juliangoacher/repos","events_url":"https://api.github.com/users/juliangoacher/events{/privacy}","received_events_url":"https://api.github.com/users/juliangoacher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-03T22:49:07Z","updated_at":"2015-02-16T12:27:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/expressjs/multer/pulls/81","html_url":"https://github.com/expressjs/multer/pull/81","diff_url":"https://github.com/expressjs/multer/pull/81.diff","patch_url":"https://github.com/expressjs/multer/pull/81.patch"},"body":"This PR is similar to #50 but is more generally useful because it passes both the request and response objects to the onFileUploadStart, onFileUploadData, onFileUploadComplete functions.\r\n\r\nThe main motivation for doing this is to allow progressive responses to be sent to the client (via either http or socket.io) as the upload is received. Access to the request object allows identifying info about the request to be read; access to the response object allows progress data to be sent to the client over http.\r\n\r\nThe new arguments are additional to the existing file + data args, so the change is backwards compatible."},"comment":{"url":"https://api.github.com/repos/expressjs/multer/issues/comments/74501341","html_url":"https://github.com/expressjs/multer/pull/81#issuecomment-74501341","issue_url":"https://api.github.com/repos/expressjs/multer/issues/81","id":74501341,"user":{"login":"lucasmotta","id":76673,"avatar_url":"https://avatars.githubusercontent.com/u/76673?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasmotta","html_url":"https://github.com/lucasmotta","followers_url":"https://api.github.com/users/lucasmotta/followers","following_url":"https://api.github.com/users/lucasmotta/following{/other_user}","gists_url":"https://api.github.com/users/lucasmotta/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasmotta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasmotta/subscriptions","organizations_url":"https://api.github.com/users/lucasmotta/orgs","repos_url":"https://api.github.com/users/lucasmotta/repos","events_url":"https://api.github.com/users/lucasmotta/events{/privacy}","received_events_url":"https://api.github.com/users/lucasmotta/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T12:27:50Z","updated_at":"2015-02-16T12:27:50Z","body":"+1 for this too"}}