{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/130","repository_url":"https://api.github.com/repos/strongloop/loopback-component-storage","labels_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/130/comments","events_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/130/events","html_url":"https://github.com/strongloop/loopback-component-storage/issues/130","id":155967561,"number":130,"title":"AngularJS SDK + Storage.upload() method","user":{"login":"TheRossman","id":910120,"avatar_url":"https://avatars.githubusercontent.com/u/910120?v=3","gravatar_id":"","url":"https://api.github.com/users/TheRossman","html_url":"https://github.com/TheRossman","followers_url":"https://api.github.com/users/TheRossman/followers","following_url":"https://api.github.com/users/TheRossman/following{/other_user}","gists_url":"https://api.github.com/users/TheRossman/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRossman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRossman/subscriptions","organizations_url":"https://api.github.com/users/TheRossman/orgs","repos_url":"https://api.github.com/users/TheRossman/repos","events_url":"https://api.github.com/users/TheRossman/events{/privacy}","received_events_url":"https://api.github.com/users/TheRossman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/labels/waiting","name":"waiting","color":"eeeeee"}],"state":"open","locked":false,"assignee":{"login":"richardpringle","id":3286504,"avatar_url":"https://avatars.githubusercontent.com/u/3286504?v=3","gravatar_id":"","url":"https://api.github.com/users/richardpringle","html_url":"https://github.com/richardpringle","followers_url":"https://api.github.com/users/richardpringle/followers","following_url":"https://api.github.com/users/richardpringle/following{/other_user}","gists_url":"https://api.github.com/users/richardpringle/gists{/gist_id}","starred_url":"https://api.github.com/users/richardpringle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardpringle/subscriptions","organizations_url":"https://api.github.com/users/richardpringle/orgs","repos_url":"https://api.github.com/users/richardpringle/repos","events_url":"https://api.github.com/users/richardpringle/events{/privacy}","received_events_url":"https://api.github.com/users/richardpringle/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-05-20T13:50:34Z","updated_at":"2016-06-02T18:16:27Z","closed_at":null,"body":"Hi all,\r\n\r\nI am using loopback-component-storage to connect to an Amazon s3 bucket without issue.  Creating and listing containers works great.  Using the AngularJS Client SDK generated by lb-ng, I can see that there was a method generated to upload a file for my container model, ie. Container.upload().\r\n\r\nMy issue is that I cannot figure out the correct params to pass to that upload method to get a successful upload.\r\n\r\nI have tried: \r\n```\r\n      Container.upload({container: 's3bucketname'}, {file: file}).$promise.then(function(){\r\n        console.log('file uploaded!');\r\n      });\r\n```\r\nwhich will generate a call to the server in my network console but no file ever uploads.  If I replace that call with the ng-file-upload Uploader, things work fine.  Should the angular generated upload method work, and if so, what are the expected params?   I was not able to find this documented anywhere.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/comments/223376479","html_url":"https://github.com/strongloop/loopback-component-storage/issues/130#issuecomment-223376479","issue_url":"https://api.github.com/repos/strongloop/loopback-component-storage/issues/130","id":223376479,"user":{"login":"TheRossman","id":910120,"avatar_url":"https://avatars.githubusercontent.com/u/910120?v=3","gravatar_id":"","url":"https://api.github.com/users/TheRossman","html_url":"https://github.com/TheRossman","followers_url":"https://api.github.com/users/TheRossman/followers","following_url":"https://api.github.com/users/TheRossman/following{/other_user}","gists_url":"https://api.github.com/users/TheRossman/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRossman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRossman/subscriptions","organizations_url":"https://api.github.com/users/TheRossman/orgs","repos_url":"https://api.github.com/users/TheRossman/repos","events_url":"https://api.github.com/users/TheRossman/events{/privacy}","received_events_url":"https://api.github.com/users/TheRossman/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T18:16:27Z","updated_at":"2016-06-02T18:16:27Z","body":"Hi @richardpringle ,\r\n\r\nI have forked your repo and replicated the issue here: https://github.com/TheRossman/loopback-sandbox\r\n\r\nYou should be able to clone that repo, run node ., then browse to http://0.0.0.0:3000/index.html to see the issue.\r\n\r\nRelevant code is:\r\nhttps://github.com/TheRossman/loopback-sandbox/blob/master/client/scripts/controllers/main.js#L16-L18\r\n\r\nThank you, please let me know if you have any questions!  \r\n\r\n- mark"}}
{"actor":{"display_login":"TheRossman"}}