-- cgi util module
+local uci = require("uci")
+local u_c = uci.cursor()
+local tmppath = u_c.get("filemanager","config","tmpdir")
+
local prevbuf = ""
local blocksize = 4096
local _M = {}
req.boundary = "--" .. req.boundary
end
-- this is useful only if you have /tmp on tmpfs like in openwrt. otherwise can be set to ""
- req.tempdir = "/tmp"
+ req.tempdir = tmppath
req.post = {}
end
return 400, "Malformed POST. Boundary not properly ended with CRLF or --."
end
-return _M
\ No newline at end of file
+return _M