{"action":"closed","issue":{"url":"https://api.github.com/repos/balderdashy/skipper/issues/140","repository_url":"https://api.github.com/repos/balderdashy/skipper","labels_url":"https://api.github.com/repos/balderdashy/skipper/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/skipper/issues/140/comments","events_url":"https://api.github.com/repos/balderdashy/skipper/issues/140/events","html_url":"https://github.com/balderdashy/skipper/issues/140","id":139326939,"number":140,"title":"Stream file to buffer","user":{"login":"apmitchell","id":5396521,"avatar_url":"https://avatars.githubusercontent.com/u/5396521?v=3","gravatar_id":"","url":"https://api.github.com/users/apmitchell","html_url":"https://github.com/apmitchell","followers_url":"https://api.github.com/users/apmitchell/followers","following_url":"https://api.github.com/users/apmitchell/following{/other_user}","gists_url":"https://api.github.com/users/apmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/apmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apmitchell/subscriptions","organizations_url":"https://api.github.com/users/apmitchell/orgs","repos_url":"https://api.github.com/users/apmitchell/repos","events_url":"https://api.github.com/users/apmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/apmitchell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-08T16:40:44Z","updated_at":"2016-06-21T23:00:38Z","closed_at":"2016-06-21T23:00:38Z","body":"How can I pipe req.file('foo') into a buffer?\r\nBasically, when I use the sails.io client, I pass a file in the params\r\n\r\n```javascript\r\nio.socket.request({\r\n   method: 'post',\r\n   url: '/uploadFile',\r\n   params: {\r\n     file: data.file\r\n   }\r\n  }, function (data, jwres) {\r\n    // some logic\r\n});\r\n````\r\nand the server receives req.body.file as a buffer.\r\n\r\nHow is the sails.io client doing this and how can I replicate it without using the client?"}}
{"actor":{"display_login":"sailsbot"}}