fix paths of large sized images on s3 backup

This commit is contained in:
r888888888
2017-06-05 13:07:39 -07:00
parent 7f062eb514
commit e16320a376
2 changed files with 3 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ class AmazonBackup < ActiveRecord::Base
end
if File.exists?(post.large_file_path)
key = "large/#{post.md5}.#{post.large_file_ext}"
key = "sample/#{post.md5}.#{post.large_file_ext}"
body = open(post.large_file_path, "rb")
client.put_object(bucket: bucket, key: key, body: body)
end