Skip to content
Browse files

Provide content type of file to fog.

  • Loading branch information...
1 parent 071c938 commit 839b98c612d5bebdfb369a58b130f13e38915c3a Jeremy McNevin committed with jyurek Aug 10, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/paperclip/storage/fog.rb
View
7 lib/paperclip/storage/fog.rb
@@ -80,9 +80,10 @@ def flush_writes
retried = false
begin
directory.files.create(fog_file.merge(
- :body => file,
- :key => path(style),
- :public => fog_public
+ :body => file,
+ :key => path(style),
+ :public => fog_public,
+ :content_type => file.content_type.to_s.strip
))
rescue Excon::Errors::NotFound
raise if retried

0 comments on commit 839b98c

Please sign in to comment.
Something went wrong with that request. Please try again.