{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/115","repository_url":"https://api.github.com/repos/strongloop/loopback-component-storage","labels_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/115/comments","events_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/115/events","html_url":"https://github.com/strongloop/loopback-component-storage/issues/115","id":141181056,"number":115,"title":"Needs revision on documentation for storageService.download","user":{"login":"saggafarsyad","id":7218502,"avatar_url":"https://avatars.githubusercontent.com/u/7218502?v=3","gravatar_id":"","url":"https://api.github.com/users/saggafarsyad","html_url":"https://github.com/saggafarsyad","followers_url":"https://api.github.com/users/saggafarsyad/followers","following_url":"https://api.github.com/users/saggafarsyad/following{/other_user}","gists_url":"https://api.github.com/users/saggafarsyad/gists{/gist_id}","starred_url":"https://api.github.com/users/saggafarsyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saggafarsyad/subscriptions","organizations_url":"https://api.github.com/users/saggafarsyad/orgs","repos_url":"https://api.github.com/users/saggafarsyad/repos","events_url":"https://api.github.com/users/saggafarsyad/events{/privacy}","received_events_url":"https://api.github.com/users/saggafarsyad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/labels/doc","name":"doc","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"crandmck","id":2925364,"avatar_url":"https://avatars.githubusercontent.com/u/2925364?v=3","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-16T05:56:37Z","updated_at":"2016-04-19T03:34:38Z","closed_at":"2016-03-29T22:10:32Z","body":"I was writing a remote method in my user model for downloading image profile. I'm using [storageService.download](https://apidocs.strongloop.com/loopback-component-storage/#storageservice-prototype-download).  I read all documentations [here](https://docs.strongloop.com/display/public/LB/Storage+component) and [here](https://apidocs.strongloop.com/loopback-component-storage/#storageservice-prototype-download)  but nothing works. It always returns the same error `res.type is not a function etc`. \r\n\r\nI almost give up until I take a look at the [base code](https://github.com/strongloop/loopback-component-storage/blob/master/lib/storage-service.js), and then I found that the parameters should be `storageService.download(container, file, req, res, cb)`. \r\n\r\nIt would be more helpful if the documentation is always updated. Thank you"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/comments/211712991","html_url":"https://github.com/strongloop/loopback-component-storage/issues/115#issuecomment-211712991","issue_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/115","id":211712991,"user":{"login":"saggafarsyad","id":7218502,"avatar_url":"https://avatars.githubusercontent.com/u/7218502?v=3","gravatar_id":"","url":"https://api.github.com/users/saggafarsyad","html_url":"https://github.com/saggafarsyad","followers_url":"https://api.github.com/users/saggafarsyad/followers","following_url":"https://api.github.com/users/saggafarsyad/following{/other_user}","gists_url":"https://api.github.com/users/saggafarsyad/gists{/gist_id}","starred_url":"https://api.github.com/users/saggafarsyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saggafarsyad/subscriptions","organizations_url":"https://api.github.com/users/saggafarsyad/orgs","repos_url":"https://api.github.com/users/saggafarsyad/repos","events_url":"https://api.github.com/users/saggafarsyad/events{/privacy}","received_events_url":"https://api.github.com/users/saggafarsyad/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T03:34:38Z","updated_at":"2016-04-19T03:34:38Z","body":"@jaime-franco Yeah it seems not yet updated"}}