mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 15:42:32 -05:00
adjust filename
This commit is contained in:
1 parent
256d14eb94
commit
1b63b16691
12 files changed
+26
-14
No files matched your search
@@ -31,7 +31,7 @@ class TemplateDocumentsController < ApplicationController
|
||||
documents, = Templates::CreateAttachments.call(@template, params, extract_fields: true)
|
||||
|
||||
schema = documents.map do |doc|
|
||||
{ attachment_uuid: doc.uuid, name: doc.filename.base }
|
||||
{ attachment_uuid: doc.uuid, name: FilenameUtils.basename(doc.blob[:filename]) }
|
||||
end
|
||||
|
||||
render json: {
|
||||
|
||||
Reference in new issue
Block a user