2014-03-27 2 views
1

저는 클립을 사용하여 업로드 된 PDF의 축소판을 생성하고 있습니다. 그들은 IE8에서 볼 때를 제외하고는 잘 작동합니다. 누구나 이것이 왜 있는지 압니까?클립, PDF 축소판 및 IE8

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

    validates_attachment :file, presence: false, 
           content_type: { content_type: "application/pdf" }, 
           size: { less_than: 3.megabytes } 

답변

2

기본 축소판 이미지로 jpg를 추가하여이 문제를 해결할 수있었습니다.

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