Explorar el Código

Fix image type not being set after conversion for convertible image types (#20624)

Eugen Rochko hace 1 año
padre
commit
5c826c408d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/models/media_attachment.rb

+ 1 - 0
app/models/media_attachment.rb

@@ -82,6 +82,7 @@ class MediaAttachment < ApplicationRecord
   IMAGE_CONVERTED_STYLES = {
     original: {
       format: 'jpeg',
+      content_type: 'image/jpeg',
     }.merge(IMAGE_STYLES[:original]).freeze,
 
     small: {