1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2025-02-06 20:12:48 +01:00
2018-09-19 15:08:49 +02:00

9 lines
229 B
Lua

auth_or_die("User unauthorized. Please login")
local vfs = require("fs.vfs")
if REQUEST.query then
local r,m = require("fs.vfs").upload(REQUEST.query.path)
if r then result(r) else fail(m) end
else
fail("Query not found")
end