mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
fix url download
This commit is contained in:
1 parent
7a2c37454e
commit
9377766e52
3 files changed
+7
-7
No files matched your search
@@ -56,7 +56,7 @@ class TemplatesUploadsController < ApplicationController
|
||||
def create_file_params_from_url
|
||||
tempfile = Tempfile.new
|
||||
tempfile.binmode
|
||||
tempfile.write(DownloadUtils.call(params[:url]).body)
|
||||
tempfile.write(DownloadUtils.call(params[:url], validate: true).body)
|
||||
tempfile.rewind
|
||||
|
||||
filename = URI.decode_www_form_component(params[:filename]) if params[:filename].present?
|
||||
|
||||
Reference in new issue
Block a user