mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 04:13:53 +08:00
FIX: upload method in S3Helper will expect a file object param
This commit is contained in:
@ -33,7 +33,10 @@ def upload(path, remote_path, content_type, content_encoding = nil)
|
||||
puts "Skipping: #{remote_path}"
|
||||
else
|
||||
puts "Uploading: #{remote_path}"
|
||||
helper.upload(path, remote_path, options)
|
||||
|
||||
File.open(path) do |file|
|
||||
helper.upload(file, remote_path, options)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user