Skip to content

A platform for community discussion. Free, open, simple.

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

Vinoth Kannan902f53511102
diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rake
index 5ad2de01744..69c854827a2 100644
--- a/lib/tasks/s3.rake
+++ b/lib/tasks/s3.rake
@@ -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