Commit cb8d87d6 by Philipp Brumm

set binmode for all adapters

parent 05cda021
...@@ -49,6 +49,7 @@ module Paperclip ...@@ -49,6 +49,7 @@ module Paperclip
def copy_to_tempfile(src) def copy_to_tempfile(src)
dest = Tempfile.new(src.original_filename) dest = Tempfile.new(src.original_filename)
dest.binmode
FileUtils.cp(src.path(:original), dest.path) FileUtils.cp(src.path(:original), dest.path)
dest dest
end end
......
...@@ -57,6 +57,7 @@ module Paperclip ...@@ -57,6 +57,7 @@ module Paperclip
def copy_to_tempfile(src) def copy_to_tempfile(src)
dest = Tempfile.new(original_filename) dest = Tempfile.new(original_filename)
dest.binmode
FileUtils.cp(src.path, dest.path) FileUtils.cp(src.path, dest.path)
dest dest
end end
......
...@@ -51,6 +51,7 @@ module Paperclip ...@@ -51,6 +51,7 @@ module Paperclip
def copy_to_tempfile(src) def copy_to_tempfile(src)
dest = Tempfile.new(original_filename) dest = Tempfile.new(original_filename)
dest.binmode
FileUtils.cp(src.path, dest.path) FileUtils.cp(src.path, dest.path)
dest dest
end end
......
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