fixed #1013 thanks jbivins

This commit is contained in:
MrZYX 2011-04-11 17:08:36 +02:00
parent 71f7fcf22f
commit e91c153257

View file

@ -217,6 +217,7 @@ class PhotosController < ApplicationController
rescue RuntimeError => e rescue RuntimeError => e
raise e unless e.message.include?('cannot generate tempfile') raise e unless e.message.include?('cannot generate tempfile')
file = Tempfile.new(file_name) # Ruby 1.8 compatibility file = Tempfile.new(file_name) # Ruby 1.8 compatibility
file.binmode
file.print request.raw_post file.print request.raw_post
end end
# put data into this file from raw post request # put data into this file from raw post request