FIX: upload method in S3Helper will expect a file object param

This commit is contained in:
Vinoth Kannan 2019-01-04 15:30:45 +05:30
parent 82d7f9ce5e
commit 902f535111

View File

@ -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