mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust images preview loading in builder
This commit is contained in:
1 parent
deef9c7d3b
commit
07e66a6e53
3 files changed
+15
-2
No files matched your search
@@ -23,7 +23,7 @@ class PreviewDocumentPageController < ActionController::API
|
||||
|
||||
io = Templates::ProcessDocument.generate_pdf_preview_from_file(attachment, file_path, params[:id].to_i)
|
||||
|
||||
render plain: io.tap(&:rewind).read
|
||||
render plain: io.tap(&:rewind).read, content_type: 'image/jpeg'
|
||||
end
|
||||
|
||||
def find_or_create_document_tempfile_path(attachment)
|
||||
|
||||
Reference in new issue
Block a user