| From | Sent On | Attachments |
|---|---|---|
| strawman | Nov 25, 2011 11:35 pm | |
| agentzh | Nov 26, 2011 12:07 am | |
| Nginx User | Nov 26, 2011 1:16 am | .lua |
| agentzh | Nov 26, 2011 1:45 am | |
| Nginx User | Nov 26, 2011 2:06 am | |
| Nginx User | Nov 26, 2011 2:16 am | .lua |
| strawman | Nov 26, 2011 5:10 am | |
| agentzh | Nov 26, 2011 5:15 am | |
| Nginx User | Nov 26, 2011 5:24 am | |
| Valery Kholodkov | Nov 26, 2011 12:13 pm | |
| Nginx User | Nov 26, 2011 1:16 pm | |
| agentzh | Nov 26, 2011 2:08 pm | |
| Nginx User | Nov 27, 2011 6:01 am | |
| Valery Kholodkov | Nov 28, 2011 1:45 am | |
| agentzh | Nov 28, 2011 1:51 am | |
| Valery Kholodkov | Nov 28, 2011 2:21 am | |
| agentzh | Nov 28, 2011 10:00 pm | |
| Valery Kholodkov | Nov 29, 2011 2:29 am | |
| agentzh | Nov 29, 2011 2:49 am | |
| Andrew Alexeev | Nov 29, 2011 6:58 am | |
| Valery Kholodkov | Nov 29, 2011 7:50 am |
| Subject: | Re: nginx-lua and nginx upload module | |
|---|---|---|
| From: | strawman (ngin...@nginx.us) | |
| Date: | Nov 26, 2011 5:10:15 am | |
| List: | ru.sysoev.nginx | |
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.
Here's what I get when posting to it with the above config:
$ curl -F file=@TDXBN.gif http://localhost/upload * post defs: content_type: multipart/form-data; boundary=----------------------------ff78acc43147 maxinput: 2097152 content_length: 358 maxfilesize: 1048576 args:
* post args:
* request body: ------------------------------ff78acc43147
On a slightly different tack, I noticed one of the release announcements for ngx_echo showed this directive being used:
echo_subrequest PUT /some_upstream/$upload_file_md5 -f $upload_tmp_path
Is there something in particular you need to do to get access to $upload_tmp_path etc. outside of the upload_set_form_field directive? I've tried hacking this into working with echo_subrequest, but if i try to use any of the $upload_* variables anywhere outside of that directive then it doesn't work at all.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,219085,219107#msg-219107
_______________________________________________ nginx mailing list ngi...@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx






.lua