fixed #1013 thanks jbivins
This commit is contained in:
parent
71f7fcf22f
commit
e91c153257
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue