Thanks for the swift replies, unfortunately I'm still having trouble getting it to play nicely with the upload module. Here's the config I'm using: http://pastebin.com/GsrYHwj0 It seems as though the request body isn't being read correctly; ngx.req.get_body_data() works as expected if I run it from inside /upload and make a multipart post to it, but it only returns the first line of the bodyby strawman - Nginx Mailing List - English
Hi all, I'm hoping to write an nginx-lua script which handles file uploads from the nginx upload module. I can do this fine using an external backend and the upload_pass directive, but the lua module has no functionality for parsing the multipart form data that this generates. I've also tried accessing the $upload_file_name, $upload_tmp_path etc. variables generated by the upload module direcby strawman - Nginx Mailing List - English