Showing
2 changed files
with
8 additions
and
1 deletions
| ... | ... | @@ -160,6 +160,13 @@ module Kanjai |
| 160 | 160 | content_type: 'text/css', |
| 161 | 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 | 170 | else |
| 164 | 171 | S3_BUCKET.put_object({ |
| 165 | 172 | acl: 'public-read', | ... | ... |