mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: upload method in S3Helper will expect a file object param
This commit is contained in:
parent
82d7f9ce5e
commit
902f535111
@ -33,7 +33,10 @@ def upload(path, remote_path, content_type, content_encoding = nil)
|
|||||||
puts "Skipping: #{remote_path}"
|
puts "Skipping: #{remote_path}"
|
||||||
else
|
else
|
||||||
puts "Uploading: #{remote_path}"
|
puts "Uploading: #{remote_path}"
|
||||||
helper.upload(path, remote_path, options)
|
|
||||||
|
File.open(path) do |file|
|
||||||
|
helper.upload(file, remote_path, options)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user