Skip to content

Reliable access multipart/form-data by lua-resty-upload module

License

Notifications You must be signed in to change notification settings

perfgao/lua-resty-upargs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

lua-resty-upargs

Description

Get the file name list when use 'multipart/form-data' upload file.

Synopsis

local upargs = require 'resty.upargs'
local cjson  = require 'cjson'

local upa = upargs:new({timeout = 1000})
if not upa then
    ngx.log(ngx.ERR, 'new upargs failed')
    return
end

if upa:is_formdata() then
    local file_list = upa:get_args()
    if not file_list then
        return
    end
    ngx.say('filelist: ' .. cjson.encode(file_list))
end

TODO

  • Method Interface Description
  • upload args get

About

Reliable access multipart/form-data by lua-resty-upload module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages