mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
bug #2407: Fix Image upload to Sunstone running under Apache
This commit is contained in:
parent
aed6b9d8bc
commit
f8e2e65b01
@ -408,7 +408,7 @@ post '/upload'do
|
||||
|
||||
if (rackinput.class == Tempfile)
|
||||
tmpfile = rackinput
|
||||
elsif (rackinput.class == StringIO)
|
||||
elsif (rackinput.class == StringIO || rackinput.class == PhusionPassenger::Utils::RewindableInput)
|
||||
tmpfile = Tempfile.open('sunstone-upload')
|
||||
tmpfile.write rackinput.read
|
||||
tmpfile.flush
|
||||
|
Loading…
x
Reference in New Issue
Block a user