{"action":"closed","issue":{"number":1,"created_at":"2011-10-18T13:36:02Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"All uploaded files to S3 has content_type `binary/octet-stream`. It's not good for static files such as images, documents.\r\n\r\nSolution for file `classes/kohana/storage/s3.php` in protected `function _set`:\r\n\r\n```PHP\r\n        $acl = $this->_config['public'] ? AmazonS3::ACL_PUBLIC : AmazonS3::ACL_PRIVATE;\r\n\r\n        // Get MIME-type of files\r\n        $extension = explode('.', $path);\r\n        $extension = array_pop($extension);\r\n        $mime_type = CFMimeTypes::get_mimetype($extension);\r\n\r\n        $this->_driver->create_object($this->_config['bucket'], $path, array(\r\n            'fileUpload' => $handle,\r\n            'acl' => $acl,\r\n            'contentType' => $mime_type,\r\n        ));\r\n```","comments":2,"title":"S3 contentType for uploaded files","updated_at":"2011-10-20T03:42:48Z","url":"https://api.github.com/repos/michealmorgan/kohana-storage/issues/1","id":1941797,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/3d73a332acfe8621d45985ea0be8c45c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3d73a332acfe8621d45985ea0be8c45c","url":"https://api.github.com/users/michealmorgan","id":337994,"login":"michealmorgan"},"milestone":null,"closed_at":"2011-10-20T03:42:48Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/8d6a592ced0aa8ab141c3301437a3875?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8d6a592ced0aa8ab141c3301437a3875","url":"https://api.github.com/users/Slaver","id":68165,"login":"Slaver"},"html_url":"https://github.com/michealmorgan/kohana-storage/issues/1","labels":[],"state":"closed"},"legacy":{"number":1,"action":"closed","issue":1941797}}