How I can handle multipart data uploads with the latest nginx release?
The good old upload module won^t compile anymore.
Posted at Nginx Forum:
How I can handle multipart data uploads with the latest nginx release?
The good old upload module won^t compile anymore.
Posted at Nginx Forum:
Hello!
On Thu, Jul 25, 2013 at 5:04 PM, nenad wrote:
How I can handle multipart data uploads with the latest nginx release?
Take a look at ngx_lua module and the lua-resty-upload library:
https://github.com/agentzh/lua-resty-upload
Best regards,
-agentzh
I have the same problem. The upload module was exactly what I needed. I
don’t understand the complexity of why it can’t be made to work in
1.4.x+.
I was looking at resty upload module. I was curious how to store the
file
on disk relative to the document root?
For some reason it didn’t work unless I specified the absolute path.
Perhaps I am doing it wrong?
Thank you agentzh, it look as it can do the job.
Do you know if there will be some performance related Issues with usage
of
the lua module?
Posted at Nginx Forum:
Hello!
On Mon, Jul 29, 2013 at 4:17 PM, nenad wrote:
Do you know if there will be some performance related Issues with usage of
the lua module?
The ngx_lua module was created with performance in mind from day #1
and quite a few people have been using it in production to prevent
developing custom nginx C modules. So if you run into any performance
issues, just let me know.
BTW, you’re recommended to use LuaJIT 2.0+ with ngx_lua to maximize
speed.
Regards,
-agentzh
Hello!
On Fri, Jul 26, 2013 at 5:06 AM, David J wrote:
I was looking at resty upload module. I was curious how to store the file on
disk relative to the document root?For some reason it didn’t work unless I specified the absolute path.
You can just obtain the document root in Lua via
ngx.var.document_root, i.e., accessing Nginx’s built-in variable
$document_root:
http://wiki.nginx.org/HttpCoreModule#.24document_root
So it’s trivial to construct a proper absolute path without assuming
what the document root is in Lua.
Regards,
-agentzh
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs