{"action":"created","issue":{"url":"https://api.github.com/repos/tablexi/nucore-open/issues/310","labels_url":"https://api.github.com/repos/tablexi/nucore-open/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/tablexi/nucore-open/issues/310/comments","events_url":"https://api.github.com/repos/tablexi/nucore-open/issues/310/events","html_url":"https://github.com/tablexi/nucore-open/pull/310","id":95501927,"number":310,"title":"[#25081] Redirect attachment downloads to private, expiring S3 URLs","user":{"login":"drench","id":46662,"avatar_url":"https://avatars.githubusercontent.com/u/46662?v=3","gravatar_id":"","url":"https://api.github.com/users/drench","html_url":"https://github.com/drench","followers_url":"https://api.github.com/users/drench/followers","following_url":"https://api.github.com/users/drench/following{/other_user}","gists_url":"https://api.github.com/users/drench/gists{/gist_id}","starred_url":"https://api.github.com/users/drench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drench/subscriptions","organizations_url":"https://api.github.com/users/drench/orgs","repos_url":"https://api.github.com/users/drench/repos","events_url":"https://api.github.com/users/drench/events{/privacy}","received_events_url":"https://api.github.com/users/drench/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-16T18:56:49Z","updated_at":"2015-07-31T00:24:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tablexi/nucore-open/pulls/310","html_url":"https://github.com/tablexi/nucore-open/pull/310","diff_url":"https://github.com/tablexi/nucore-open/pull/310.diff","patch_url":"https://github.com/tablexi/nucore-open/pull/310.patch"},"body":"To get the S3 URLs to be temporary *and* force download I borrowed @cenavarro's workaround as seen here https://github.com/tablexi/chidry/pull/422.\r\n\r\nDownloads should continue to work when using the local filesystem, though the redirected-to-URLs won't be private or temporary (that is, business as usual).\r\n\r\nNeed to run the following rake tasks:\r\n```\r\nrake paperclip:mime:update_from_file_extensions\r\nrake paperclip:move_to_s3\r\n```"},"comment":{"url":"https://api.github.com/repos/tablexi/nucore-open/issues/comments/126528462","html_url":"https://github.com/tablexi/nucore-open/pull/310#issuecomment-126528462","issue_url":"https://api.github.com/repos/tablexi/nucore-open/issues/310","id":126528462,"user":{"login":"jhanggi","id":1099111,"avatar_url":"https://avatars.githubusercontent.com/u/1099111?v=3","gravatar_id":"","url":"https://api.github.com/users/jhanggi","html_url":"https://github.com/jhanggi","followers_url":"https://api.github.com/users/jhanggi/followers","following_url":"https://api.github.com/users/jhanggi/following{/other_user}","gists_url":"https://api.github.com/users/jhanggi/gists{/gist_id}","starred_url":"https://api.github.com/users/jhanggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhanggi/subscriptions","organizations_url":"https://api.github.com/users/jhanggi/orgs","repos_url":"https://api.github.com/users/jhanggi/repos","events_url":"https://api.github.com/users/jhanggi/events{/privacy}","received_events_url":"https://api.github.com/users/jhanggi/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T00:24:38Z","updated_at":"2015-07-31T00:24:38Z","body":"This looks good now. I'm thinking I'll wait to merge this in until we get some other pieces released to production."}}