Hello! 2014-08-23 23:53 GMT-07:00 duanliguo6180: > 春哥,最近在项目上要实现一个大文件上传功能,后端的服务器是按照固定大小的value存储的,nginx如何分割request_body,然后多次和后端服务器发起请求呢?在这方面有类似的开源扩展实现么?我看sub_request的方式没有request_content_body的传入接口,在upstream > read client body时也是忽略子请求的,求指导。 > 你可以使用 ngx.req.socket API: https://github.com/openresty/lua-nginx-module#ngxreqsocket lua-resty-upload 库正是使用的是这个接口来流式读取和处理 multipart 格式的请求体数据: https://github.com/openresty/lua-resty-upload Regards, -agentzh