Permalink
Browse files

Fix all files being sent to S3 with the same mime type regardless of …

…processing
  • Loading branch information...
1 parent 0ab7413 commit ce5bea46ceee5c3c946bb97a008210aa16577044 @ernie committed Jul 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/storage.rb
@@ -207,7 +207,7 @@ def flush_writes #:nodoc:
AWS::S3::S3Object.store(path(style),
file,
bucket_name,
- {:content_type => instance_read(:content_type),
+ {:content_type => file.content_type,
:access => @s3_permissions,
}.merge(@s3_headers))
rescue AWS::S3::ResponseError => e

0 comments on commit ce5bea4

Please sign in to comment.