Skip to content

Commit

Permalink
Sign URL uploads if configured
Browse files Browse the repository at this point in the history
  • Loading branch information
geeosh committed Nov 27, 2023
1 parent d7f226c commit d54bd17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/uploadcare/client/uploader_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def upload_from_url_body(url, options = {})
options.merge(
'pub_key' => Uploadcare.config.public_key,
'source_url' => url,
'store' => store_value(options[:store])
'store' => store_value(options[:store]),
'signature' => (Upload::SignatureGenerator.call if Uploadcare.config.sign_uploads)
)
)
end
Expand Down

0 comments on commit d54bd17

Please sign in to comment.