{"action":"created","issue":{"url":"https://api.github.com/repos/adaptlearning/adapt_authoring/issues/586","labels_url":"https://api.github.com/repos/adaptlearning/adapt_authoring/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/adaptlearning/adapt_authoring/issues/586/comments","events_url":"https://api.github.com/repos/adaptlearning/adapt_authoring/issues/586/events","html_url":"https://github.com/adaptlearning/adapt_authoring/issues/586","id":59249593,"number":586,"title":"Unhelpful error message on failed plugin upload","user":{"login":"taylortom","id":1059083,"avatar_url":"https://avatars.githubusercontent.com/u/1059083?v=3","gravatar_id":"","url":"https://api.github.com/users/taylortom","html_url":"https://github.com/taylortom","followers_url":"https://api.github.com/users/taylortom/followers","following_url":"https://api.github.com/users/taylortom/following{/other_user}","gists_url":"https://api.github.com/users/taylortom/gists{/gist_id}","starred_url":"https://api.github.com/users/taylortom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylortom/subscriptions","organizations_url":"https://api.github.com/users/taylortom/orgs","repos_url":"https://api.github.com/users/taylortom/repos","events_url":"https://api.github.com/users/taylortom/events{/privacy}","received_events_url":"https://api.github.com/users/taylortom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adaptlearning/adapt_authoring/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-27T15:21:45Z","updated_at":"2015-03-25T10:31:46Z","closed_at":null,"body":"In my case, I was trying to upload a plugin that had been zipped from the inside, resulting in:\r\n``` javascript\r\nfolder/\r\n   file1\r\n   file2\r\n   ...\r\n\r\n```\r\nAs opposed to:\r\n``` javascript\r\nfolder/\r\n   folder/\r\n      file1\r\n      file2\r\n      ...\r\n```\r\nAn assumption's made in [plugins/content/bower/index.js](https://github.com/adaptlearning/adapt_authoring/blob/develop/plugins/content/bower/index.js#L800 that) the `bower.json` file for the plugin is in a nested folder. I think it makes more sense to zip the contents from the inside. Regardless, we need to give a more helpful error message for this issue.\r\n\r\nI've implemented a possible solution here: https://github.com/taylortom/adapt_authoring/commits/develop\r\n\r\nThe upload tool also completely falls over if file was zipped using the Mac OS X 'compress' (due to the `__MACOSX` folder), would be good to see if we could work around this."},"comment":{"url":"https://api.github.com/repos/adaptlearning/adapt_authoring/issues/comments/85975557","html_url":"https://github.com/adaptlearning/adapt_authoring/issues/586#issuecomment-85975557","issue_url":"https://api.github.com/repos/adaptlearning/adapt_authoring/issues/586","id":85975557,"user":{"login":"taylortom","id":1059083,"avatar_url":"https://avatars.githubusercontent.com/u/1059083?v=3","gravatar_id":"","url":"https://api.github.com/users/taylortom","html_url":"https://github.com/taylortom","followers_url":"https://api.github.com/users/taylortom/followers","following_url":"https://api.github.com/users/taylortom/following{/other_user}","gists_url":"https://api.github.com/users/taylortom/gists{/gist_id}","starred_url":"https://api.github.com/users/taylortom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylortom/subscriptions","organizations_url":"https://api.github.com/users/taylortom/orgs","repos_url":"https://api.github.com/users/taylortom/repos","events_url":"https://api.github.com/users/taylortom/events{/privacy}","received_events_url":"https://api.github.com/users/taylortom/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T10:31:46Z","updated_at":"2015-03-25T10:31:46Z","body":"Fixed in https://github.com/adaptlearning/adapt_authoring/pull/591"}}