mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
normalize file urls
This commit is contained in:
1 parent
fc11078cae
commit
44a49a4533
2 files changed
+2
-2
No files matched your search
@@ -35,7 +35,7 @@ class TemplatesUploadsController < ApplicationController
|
||||
def create_file_params_from_url
|
||||
tempfile = Tempfile.new
|
||||
tempfile.binmode
|
||||
tempfile.write(conn.get(params[:url]).body)
|
||||
tempfile.write(conn.get(Addressable::URI.parse(params[:url]).display_uri.to_s).body)
|
||||
tempfile.rewind
|
||||
|
||||
file = ActionDispatch::Http::UploadedFile.new(
|
||||
|
||||
Reference in new issue
Block a user