atom feed21 messages in ru.sysoev.nginxRe: nginx-lua and nginx upload module
FromSent OnAttachments
strawmanNov 25, 2011 11:35 pm 
agentzhNov 26, 2011 12:07 am 
Nginx UserNov 26, 2011 1:16 am.lua
agentzhNov 26, 2011 1:45 am 
Nginx UserNov 26, 2011 2:06 am 
Nginx UserNov 26, 2011 2:16 am.lua
strawmanNov 26, 2011 5:10 am 
agentzhNov 26, 2011 5:15 am 
Nginx UserNov 26, 2011 5:24 am 
Valery KholodkovNov 26, 2011 12:13 pm 
Nginx UserNov 26, 2011 1:16 pm 
agentzhNov 26, 2011 2:08 pm 
Nginx UserNov 27, 2011 6:01 am 
Valery KholodkovNov 28, 2011 1:45 am 
agentzhNov 28, 2011 1:51 am 
Valery KholodkovNov 28, 2011 2:21 am 
agentzhNov 28, 2011 10:00 pm 
Valery KholodkovNov 29, 2011 2:29 am 
agentzhNov 29, 2011 2:49 am 
Andrew AlexeevNov 29, 2011 6:58 am 
Valery KholodkovNov 29, 2011 7:50 am 
Subject:Re: nginx-lua and nginx upload module
From:Valery Kholodkov (vale@grid.net.ru)
Date:Nov 26, 2011 12:13:30 pm
List:ru.sysoev.nginx

The limitation on the phase that is used to process uploads at the moment comes
from nginx itself and not from upload module.

If you describe what sort of API you need from upload module, I will be able to
implement it.

On 26 Nov 2011, at 14:16, agentzh <agen@gmail.com> wrote:

On Sat, Nov 26, 2011 at 9:10 PM, strawman <ngin@nginx.us> wrote:

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 body data when run from inside @handler. echo_request_body works fine either way.

Sigh. I really hope that ngx_upload could be implemented as a rewrite or access phase handler rather than a content handler, then we can trivially combine with content_by_lua in the same location, for example, and no longer need to do any kind of internal redirections that clear everything including nginx variables and module contexts.

Maybe Valery can work on an alternative UI for his ngx_upload module? ;)