lib/paperclip-aws.rb in paperclip-aws-1.1.1 vs lib/paperclip-aws.rb in paperclip-aws-1.1.2
- old
+ new
@@ -104,10 +104,11 @@
log("saving #{path(style)}")
@s3.buckets[@s3_bucket].objects[path(style)].write(
file,
:acl => @s3_acl,
- :storage_class => @s3_storage_class
+ :storage_class => @s3_storage_class,
+ :content_type => file.content_type
)
rescue AWS::S3::Errors::NoSuchBucket => e
create_bucket
retry
rescue AWS::S3::Errors::Base => e
\ No newline at end of file