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.rakeindex 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}"elseputs "Uploading: #{remote_path}"- helper.upload(path, remote_path, options)++ File.open(path) do |file|+ helper.upload(file, remote_path, options)+ endendend