Fix file extension when backing up ugoira to S3.

This commit is contained in:
evazion
2014-10-17 17:02:11 -05:00
committed by r888888888
parent 38cb35ffbd
commit 5754dcb260

View File

@@ -32,7 +32,7 @@ class AmazonBackup < ActiveRecord::Base
end
if File.exists?(post.large_file_path)
AWS::S3::S3Object.store("large/#{post.md5}.jpg", open(post.large_file_path, "rb"), Danbooru.config.amazon_s3_bucket_name)
AWS::S3::S3Object.store("large/#{post.md5}.#{post.large_file_ext}", open(post.large_file_path, "rb"), Danbooru.config.amazon_s3_bucket_name)
end
AmazonBackup.update_id(post.id)