{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-go/issues/290","labels_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/290/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/290/events","html_url":"https://github.com/aws/aws-sdk-go/issues/290","id":90055895,"number":290,"title":"s3manager: set ContentType by default","user":{"login":"r03","id":10061147,"avatar_url":"https://avatars.githubusercontent.com/u/10061147?v=3","gravatar_id":"","url":"https://api.github.com/users/r03","html_url":"https://github.com/r03","followers_url":"https://api.github.com/users/r03/followers","following_url":"https://api.github.com/users/r03/following{/other_user}","gists_url":"https://api.github.com/users/r03/gists{/gist_id}","starred_url":"https://api.github.com/users/r03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r03/subscriptions","organizations_url":"https://api.github.com/users/r03/orgs","repos_url":"https://api.github.com/users/r03/repos","events_url":"https://api.github.com/users/r03/events{/privacy}","received_events_url":"https://api.github.com/users/r03/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-22T09:45:01Z","updated_at":"2015-06-22T09:45:01Z","closed_at":null,"body":"I was using the s3manager to upload files and noticed that the ContentType was wrong.\r\nThis was easily corrected by setting ContentType in UploadInput.\r\nI used something like this: mime.TypeByExtension(filepath.Ext(filename))\r\n\r\nMaybe this should be done by default?\r\n\r\nIn my case I was uploading .html files which caused my website to download the files instead of showing them."}}