Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Provide content type of file to fog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy McNevin authored and Jon Yurek committed Jan 16, 2012
1 parent 071c938 commit 839b98c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/paperclip/storage/fog.rb
Expand Up @@ -80,9 +80,10 @@ def flush_writes
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
Expand Down

0 comments on commit 839b98c

Please sign in to comment.