1
我一直在嘗試使用lua和Openresty web框架進行簡單的圖片上傳。我發現很多解決方案,如使用lua上傳圖片
使用Lua-resty-後我得到的表單數據,現在我怎麼上傳?
local resty_post = require 'resty.post'
local cjson = require 'cjson'
local post = resty_post:new()
local m = post:read()
ngx.say(cjson.encode(m))
由於我是新手,我不明白哪一個使用。 我的要求非常簡單,我需要一個文件屬性,並希望在某些地方上傳,如在php move_uploaded_file中。有沒有簡單的方法來上傳文件?