mirror of
https://github.com/docusealco/docuseal
synced 2026-11-12 15:42:32 -05:00
adjust image type
This commit is contained in:
1 parent
3cdab30dc8
commit
095f25a6e9
2 files changed
+15
-5
No files matched your search
@@ -294,8 +294,11 @@ module Submissions
|
||||
canvas.font(FONT_NAME, size: font_size)
|
||||
|
||||
field_type = field['type']
|
||||
field_type = 'file' if field_type == 'image' &&
|
||||
!submitter.attachments.find { |a| a.uuid == value }.image?
|
||||
|
||||
if field_type == 'image' &&
|
||||
submitter.attachments.find { |a| a.uuid == value }.then { |a| !a.image? || a.content_type == 'image/heic' }
|
||||
field_type = 'file'
|
||||
end
|
||||
|
||||
if field_type == 'signature' && field.dig('preferences', 'with_signature_id').in?([true, false])
|
||||
with_signature_id = field['preferences']['with_signature_id']
|
||||
|
||||
Reference in new issue
Block a user