nginx-lua and nginx upload module
agentzh
agentzh at gmail.com
Sat Nov 26 09:46:34 UTC 2011
On Sat, Nov 26, 2011 at 5:16 PM, Nginx User <nginx at nginxuser.net> wrote:
> Hi There,
>
> I hit the multipart form limitation of the ngx_lua module recently and
> wrote a lua module to do the job.
>
> Basically I combined a number of functions from various cgilua modules
> and added a few of my own to create a single module.
>
> I have attached a copy and the instructions for calling it are added
> as comments at the top of the module.
>
> It will handle both url encoded and multipart encoded forms and return
> the post data as a lua key/value pairs
>
This approach certainly works but it requires the request body to be
hold completely in memory, which may be unacceptable for big file
uploading.
Regards,
-agentzh
More information about the nginx
mailing list