diff options
author | Steven Barth <steven@midlink.org> | 2008-05-13 09:21:10 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-13 09:21:10 +0000 |
commit | b481ea4934cd3c28a9dd7719e5993fc9c21b0249 (patch) | |
tree | d1f198e9cce3d75e9d840c8357a0fe1a909ca157 /modules/admin-core | |
parent | b5243ea95fb92260eba14288fc5acc14e63a2d81 (diff) |
* applications/sgi-haserl: Added ffluci.http.upload for file uploads
* applications/sgi-webuci: Added stub for ffluci.http.upload
Diffstat (limited to 'modules/admin-core')
-rw-r--r-- | modules/admin-core/src/controller/admin/system.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/admin-core/src/controller/admin/system.lua b/modules/admin-core/src/controller/admin/system.lua index 7a927d6047..a612660092 100644 --- a/modules/admin-core/src/controller/admin/system.lua +++ b/modules/admin-core/src/controller/admin/system.lua @@ -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 |