Pregunta

I'm using paperclip and generating thumbnails for uploaded pdf's. They work fine except for when viewed in IE8. Anyone know why this is?

  has_attached_file :file, :styles => { :thumb => "140x140>" }

  validates_attachment :file, presence: false,
                              content_type: { content_type: "application/pdf" },
                              size: { less_than: 3.megabytes }
¿Fue útil?

Solución

I was able to work around this by adding jpg as the default thumbnail image.

has_attached_file :file, :styles => { :thumb => ["140x140>", :jpg] }
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top