do not use libvips pdf on large files

This commit is contained in:
DocuSeal
2023-10-23 22:48:52 +03:00
parent 7b15111e8f
commit abab3f9688
3 changed files with 19 additions and 16 deletions
@@ -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