From 902f53511102911855b65ab681b766cf83534bc5 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Fri, 4 Jan 2019 15:30:45 +0530 Subject: [PATCH] FIX: upload method in S3Helper will expect a file object param --- lib/tasks/s3.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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