mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
adjust attachment create
This commit is contained in:
1 parent
748eaaa98d
commit
ee9ee6ee32
2 files changed
+7
-7
No files matched your search
@@ -58,7 +58,7 @@ class TemplatesUploadsController < ApplicationController
|
||||
file = ActionDispatch::Http::UploadedFile.new(
|
||||
tempfile:,
|
||||
filename: File.basename(
|
||||
URI.decode_www_form_component(params[:filename].presence || params[:url])
|
||||
URI.decode_www_form_component(params[:filename].presence || params[:url]), '.*'
|
||||
),
|
||||
type: Marcel::MimeType.for(tempfile)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user