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 /applications/sgi-webuci | |
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 'applications/sgi-webuci')
-rw-r--r-- | applications/sgi-webuci/src/sgi/webuci.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/sgi-webuci/src/sgi/webuci.lua b/applications/sgi-webuci/src/sgi/webuci.lua index bc1c7be7a2..d3d4cd4dc2 100644 --- a/applications/sgi-webuci/src/sgi/webuci.lua +++ b/applications/sgi-webuci/src/sgi/webuci.lua @@ -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) |