{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/84","labels_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/84/comments","events_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/84/events","html_url":"https://github.com/strongloop/loopback-component-storage/issues/84","id":99884944,"number":84,"title":"File Upload","user":{"login":"OnlyRefat","id":11515256,"avatar_url":"https://avatars.githubusercontent.com/u/11515256?v=3","gravatar_id":"","url":"https://api.github.com/users/OnlyRefat","html_url":"https://github.com/OnlyRefat","followers_url":"https://api.github.com/users/OnlyRefat/followers","following_url":"https://api.github.com/users/OnlyRefat/following{/other_user}","gists_url":"https://api.github.com/users/OnlyRefat/gists{/gist_id}","starred_url":"https://api.github.com/users/OnlyRefat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnlyRefat/subscriptions","organizations_url":"https://api.github.com/users/OnlyRefat/orgs","repos_url":"https://api.github.com/users/OnlyRefat/repos","events_url":"https://api.github.com/users/OnlyRefat/events{/privacy}","received_events_url":"https://api.github.com/users/OnlyRefat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-09T10:37:09Z","updated_at":"2015-10-22T18:49:34Z","closed_at":null,"body":"How to check in the ctx.req object that if there is a file or not? I am requesting a multipart form request.  My custom method accepts \r\n\r\n accepts: [\r\n                { arg: 'ctx', type: 'object', http: { source:'context' } }\r\n            ]\r\nAnd in the method i want to check if there is a file attached before\r\n Model.app.models.container.upload(ctx.req,ctx.result,options,function (err,fileObj){});\r\n\r\ni tried to console(ctx.req). But the list is huge and hard to find.\r\n\r\nHelp."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/comments/150320686","html_url":"https://github.com/strongloop/loopback-component-storage/issues/84#issuecomment-150320686","issue_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/84","id":150320686,"user":{"login":"mike-aungsan","id":2186809,"avatar_url":"https://avatars.githubusercontent.com/u/2186809?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-aungsan","html_url":"https://github.com/mike-aungsan","followers_url":"https://api.github.com/users/mike-aungsan/followers","following_url":"https://api.github.com/users/mike-aungsan/following{/other_user}","gists_url":"https://api.github.com/users/mike-aungsan/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-aungsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-aungsan/subscriptions","organizations_url":"https://api.github.com/users/mike-aungsan/orgs","repos_url":"https://api.github.com/users/mike-aungsan/repos","events_url":"https://api.github.com/users/mike-aungsan/events{/privacy}","received_events_url":"https://api.github.com/users/mike-aungsan/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T18:49:34Z","updated_at":"2015-10-22T18:49:34Z","body":"Sure. I just pick up a few days ago. So far I am good with Model and Remote Methods. Going to have a look at Relationship and ACL today. :)"}}