* applications/sgi-haserl: Added ffluci.http.upload for file uploads
[project/luci.git] / applications / sgi-webuci / src / sgi / webuci.lua
index bc1c7be7a235b33ddf231a43a3cb6038bd139d22..d3d4cd4dc2ef932fda57c54be96ad3cea0a02f06 100644 (file)
@@ -76,6 +76,12 @@ function ffluci.http.redirect(url)
        print()
 end
 
+-- Returns the path of an uploaded file
+-- WARNING! File uploads can be easily spoofed! Do additional sanity checks!
+function ffluci.http.upload(name)
+       -- To be implemented
+end
+
 -- Sets HTTP-Status-Header
 function ffluci.http.status(code, message)
        print(webuci.env.SERVER_PROTOCOL .. " " .. tostring(code) .. " " .. message)