mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #2522: Fix rackinput check when uploading files from passenger
This commit is contained in:
parent
84e089d598
commit
fb58250c5b
@ -417,7 +417,7 @@ post '/upload'do
|
||||
|
||||
if (rackinput.class == Tempfile)
|
||||
tmpfile = rackinput
|
||||
elsif (rackinput.class == StringIO || rackinput.class == PhusionPassenger::Utils::RewindableInput)
|
||||
elsif rackinput.respond_to?('read')
|
||||
tmpfile = Tempfile.open('sunstone-upload')
|
||||
tmpfile.write rackinput.read
|
||||
tmpfile.flush
|
||||
|
Loading…
x
Reference in New Issue
Block a user