Commit 839b98c6 by Jeremy McNevin Committed by Jon Yurek

Provide content type of file to fog.

parent 071c9387
...@@ -80,9 +80,10 @@ module Paperclip ...@@ -80,9 +80,10 @@ module Paperclip
retried = false retried = false
begin begin
directory.files.create(fog_file.merge( directory.files.create(fog_file.merge(
:body => file, :body => file,
:key => path(style), :key => path(style),
:public => fog_public :public => fog_public,
:content_type => file.content_type.to_s.strip
)) ))
rescue Excon::Errors::NotFound rescue Excon::Errors::NotFound
raise if retried raise if retried
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment