do not use libvips pdf on large files

This commit is contained in:
DocuSeal committed 2023-10-24 22:31:09 +03:00
1 parent 7b15111e8f
commit abab3f9688
3 files changed
+19 -16

No files matched your search

@@ -6,12 +6,6 @@ class PreviewDocumentPageController < ActionController::API
FORMAT = Templates::ProcessDocument::FORMAT
def show
if Docuseal.multitenant?
Rollbar.warning('load page')
return head :not_found
end
attachment = ActiveStorage::Attachment.find_by(uuid: params[:attachment_uuid])
return head :not_found unless attachment