Commit 839b98c6 by Jeremy McNevin Committed by Jon Yurek

Provide content type of file to fog.

parent 071c9387
......@@ -82,7 +82,8 @@ module Paperclip
directory.files.create(fog_file.merge(
:body => file,
:key => path(style),
:public => fog_public
:public => fog_public,
:content_type => file.content_type.to_s.strip
))
rescue Excon::Errors::NotFound
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