Commit e5d505c5c63a3809013eeaf2e40817aca052ff1a

Authored by Karpikau Andrei
1 parent 5f430ea7

check svg type

@@ -160,6 +160,13 @@ module Kanjai @@ -160,6 +160,13 @@ module Kanjai
160 content_type: 'text/css', 160 content_type: 'text/css',
161 key: self.template_content_path + file_name 161 key: self.template_content_path + file_name
162 }) 162 })
  163 + elsif File.extname(file_name).to_s.downcase == '.svg'
  164 + S3_BUCKET.put_object({
  165 + acl: 'public-read',
  166 + body: content,
  167 + content_type: 'image/svg',
  168 + key: self.template_content_path + file_name
  169 + })
163 else 170 else
164 S3_BUCKET.put_object({ 171 S3_BUCKET.put_object({
165 acl: 'public-read', 172 acl: 'public-read',
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.209" 2 + VERSION = "0.0.210"
3 end 3 end