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

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

diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rake
index 5ad2de0..69c8548 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

GitHub
sha: 902f5351