fix url download

This commit is contained in:
Pete Matsyburka
2026-02-14 07:57:53 +02:00
parent 7a2c37454e
commit 9377766e52
3 changed files with 7 additions and 7 deletions
@@ -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?