{"action":"created","issue":{"url":"https://api.github.com/repos/adamhenson/s3-image-uploader/issues/2","repository_url":"https://api.github.com/repos/adamhenson/s3-image-uploader","labels_url":"https://api.github.com/repos/adamhenson/s3-image-uploader/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/adamhenson/s3-image-uploader/issues/2/comments","events_url":"https://api.github.com/repos/adamhenson/s3-image-uploader/issues/2/events","html_url":"https://github.com/adamhenson/s3-image-uploader/issues/2","id":188049189,"number":2,"title":"There was a problem uploading this file.","user":{"login":"playground","id":243495,"avatar_url":"https://avatars.githubusercontent.com/u/243495?v=3","gravatar_id":"","url":"https://api.github.com/users/playground","html_url":"https://github.com/playground","followers_url":"https://api.github.com/users/playground/followers","following_url":"https://api.github.com/users/playground/following{/other_user}","gists_url":"https://api.github.com/users/playground/gists{/gist_id}","starred_url":"https://api.github.com/users/playground/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playground/subscriptions","organizations_url":"https://api.github.com/users/playground/orgs","repos_url":"https://api.github.com/users/playground/repos","events_url":"https://api.github.com/users/playground/events{/privacy}","received_events_url":"https://api.github.com/users/playground/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-08T17:08:24Z","updated_at":"2016-11-08T18:30:35Z","closed_at":"2016-11-08T18:24:35Z","body":"Is there a way to get better error message?  All I'm getting is \"There was a problem uploading this file\"."},"comment":{"url":"https://api.github.com/repos/adamhenson/s3-image-uploader/issues/comments/259219114","html_url":"https://github.com/adamhenson/s3-image-uploader/issues/2#issuecomment-259219114","issue_url":"https://api.github.com/repos/adamhenson/s3-image-uploader/issues/2","id":259219114,"user":{"login":"adamhenson","id":747743,"avatar_url":"https://avatars.githubusercontent.com/u/747743?v=3","gravatar_id":"","url":"https://api.github.com/users/adamhenson","html_url":"https://github.com/adamhenson","followers_url":"https://api.github.com/users/adamhenson/followers","following_url":"https://api.github.com/users/adamhenson/following{/other_user}","gists_url":"https://api.github.com/users/adamhenson/gists{/gist_id}","starred_url":"https://api.github.com/users/adamhenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamhenson/subscriptions","organizations_url":"https://api.github.com/users/adamhenson/orgs","repos_url":"https://api.github.com/users/adamhenson/repos","events_url":"https://api.github.com/users/adamhenson/events{/privacy}","received_events_url":"https://api.github.com/users/adamhenson/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T18:30:35Z","updated_at":"2016-11-08T18:30:35Z","body":"Thanks @playground - I agree. You must be seeing this message in the `errorCallback` of `Uploader.upload`.\r\n\r\nOriginally, I don't think I wanted to expose server information, so I created a generic message. However, I think details are necessary here.\r\n\r\nTherefore I provided an additional parameter to `errorCallback`. I updated the README, but here's an example of how one could use it:\r\n\r\n```javascript\r\nuploader.upload({\r\n  fileId : 'someUniqueIdentifier',\r\n  bucket : 'somebucket',\r\n  source : './public/tmp/myoldimage.jpg',\r\n  name : 'mynewimage.jpg'\r\n},\r\nfunction(data){ // success\r\n  console.log('upload success:', data);\r\n  // execute success code\r\n},\r\nfunction(errMsg, errObject){ //error\r\n  console.error('unable to upload: ' + errMsg + ':', errObject);\r\n  // execute error code\r\n});\r\n```\r\n\r\nYou'll need to re-install this module to test. I've updated in NPM."}}
{"actor":{"display_login":"adamhenson"}}