lib/milton/is_uploadable.rb in citrusbyte-milton-0.1.7 vs lib/milton/is_uploadable.rb in citrusbyte-milton-0.1.8

- old
+ new

@@ -82,10 +82,10 @@ tempfile = Tempfile.new("#{rand(Time.now.to_i)}", self.options[:tempfile_path]) if data_or_path.is_a?(StringIO) tempfile.binmode - tempfile.write data + tempfile.write data_or_path.read tempfile.close else tempfile.close FileUtils.cp((data_or_path.respond_to?(:path) ? data_or_path.path : data_or_path), tempfile.path) end \ No newline at end of file