* applications/sgi-haserl: Added ffluci.http.upload for file uploads
[project/luci.git] / modules / admin-core / src / controller / admin / system.lua
index 7a927d6047f46047a0f2cda1dfd68ac013ef3e3e..a61266009224815f914bc380cd3adb7b6250ecd9 100644 (file)
@@ -178,11 +178,10 @@ function action_upgrade()
        local ret  = nil
        local plat = ffluci.fs.mtime("/lib/upgrade/platform.sh")
        
-       local image   = ffluci.http.formvalue("image")
-       local imgname = ffluci.http.formvalue("image_name")
+       local image   = ffluci.http.upload("image")
        local keepcfg = ffluci.http.formvalue("keepcfg")
        
-       if plat and imgname then
+       if plat and image then
                local kpattern = nil
                if keepcfg then
                        local files = ffluci.model.uci.sections("luci").flash_keep