mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08: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}"
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user