{"action":"created","issue":{"url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/1114","labels_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/1114/labels{/name}","comments_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/1114/comments","events_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/1114/events","html_url":"https://github.com/UM-USElab/gradecraft-development/pull/1114","id":104548406,"number":1114,"title":"Image upload validation","user":{"login":"jwright","id":35017,"avatar_url":"https://avatars.githubusercontent.com/u/35017?v=3","gravatar_id":"","url":"https://api.github.com/users/jwright","html_url":"https://github.com/jwright","followers_url":"https://api.github.com/users/jwright/followers","following_url":"https://api.github.com/users/jwright/following{/other_user}","gists_url":"https://api.github.com/users/jwright/gists{/gist_id}","starred_url":"https://api.github.com/users/jwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwright/subscriptions","organizations_url":"https://api.github.com/users/jwright/orgs","repos_url":"https://api.github.com/users/jwright/repos","events_url":"https://api.github.com/users/jwright/events{/privacy}","received_events_url":"https://api.github.com/users/jwright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jwright","id":35017,"avatar_url":"https://avatars.githubusercontent.com/u/35017?v=3","gravatar_id":"","url":"https://api.github.com/users/jwright","html_url":"https://github.com/jwright","followers_url":"https://api.github.com/users/jwright/followers","following_url":"https://api.github.com/users/jwright/following{/other_user}","gists_url":"https://api.github.com/users/jwright/gists{/gist_id}","starred_url":"https://api.github.com/users/jwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwright/subscriptions","organizations_url":"https://api.github.com/users/jwright/orgs","repos_url":"https://api.github.com/users/jwright/repos","events_url":"https://api.github.com/users/jwright/events{/privacy}","received_events_url":"https://api.github.com/users/jwright/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-02T18:52:52Z","updated_at":"2015-09-05T19:40:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/1114","html_url":"https://github.com/UM-USElab/gradecraft-development/pull/1114","diff_url":"https://github.com/UM-USElab/gradecraft-development/pull/1114.diff","patch_url":"https://github.com/UM-USElab/gradecraft-development/pull/1114.patch"},"body":"This adds file size validation to most of the image file uploaders. The following have validations added to them:\r\n\r\n* Courses (media)\r\n* Assignments (media and thumbnail)\r\n* Events (media and thumbnail)\r\n* Challenges (media and thumbnail)\r\n\r\nThe file size validator allows a maximum size validation on the uploaders. In this case, it is 2 MB.\r\n\r\nIn addition, I also did a major overall and clean up of the uploaders. The duplicate uploaders were eliminated in favor of a base uploader for images and thumbnails. Concerns for the media and thumbnail images were created and used in the respective models.\r\n\r\nThe views were consolidated as well into partials."},"comment":{"url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/comments/137988747","html_url":"https://github.com/UM-USElab/gradecraft-development/pull/1114#issuecomment-137988747","issue_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/1114","id":137988747,"user":{"login":"jwright","id":35017,"avatar_url":"https://avatars.githubusercontent.com/u/35017?v=3","gravatar_id":"","url":"https://api.github.com/users/jwright","html_url":"https://github.com/jwright","followers_url":"https://api.github.com/users/jwright/followers","following_url":"https://api.github.com/users/jwright/following{/other_user}","gists_url":"https://api.github.com/users/jwright/gists{/gist_id}","starred_url":"https://api.github.com/users/jwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwright/subscriptions","organizations_url":"https://api.github.com/users/jwright/orgs","repos_url":"https://api.github.com/users/jwright/repos","events_url":"https://api.github.com/users/jwright/events{/privacy}","received_events_url":"https://api.github.com/users/jwright/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T19:40:22Z","updated_at":"2015-09-05T19:40:22Z","body":"@chcholman I could not replicate this locally but I believe I know what the issue was regardless. I moved the MiniMagick mixin back to the `ImageUploader` instead of just on the `ThumbnailUploader`. Can you verify that you don't run into the issue anymore?"}}