Commit 839b98c6 by Jeremy McNevin Committed by Jon Yurek

Provide content type of file to fog.

parent 071c9387
......@@ -80,9 +80,10 @@ module Paperclip
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
......
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