nginx-lua and nginx upload module

Nginx User nginx at nginxuser.net
Sun Nov 27 14:01:39 UTC 2011


On 26 November 2011 10:36, strawman <nginx-forum at nginx.us> wrote:
> 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 directly, but I don't seem to be able to
> access these outside of the upload_set_form_field directive.
>
> Is there any way to get the contents of those variables into a lua
> handler in a form that can be easily parsed?

Hi,

I have been intrigued by your question and been looking at various
possible solutions but then it struck me as odd as to why you would
want to do this in the first place.

A bit of trying to step out of a potential XY Problem situation. What
is it exactly that you are trying to achieve?



More information about the nginx mailing list