Thankyou Yichun for the response. We are using lua-resty-upload and reading chunk by chunk from network and writing it to local disk. I'll post more detail in openresty fourm as you suggested. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247951,248033#msg-248033