Welcome! Log In Create A New Profile


Direct Upload without temp files

Posted by offtopic 
Direct Upload without temp files
April 12, 2014 03:50AM

we use Nginx as reverse proxy for several websites. One of your sites provides uploads of huge files (> 2gb).
The nginx Server is hosted on a small linux box (without much resources (ram/hd).

Nginx caches large files in temp path and sends the request after the whole file is processed by nginx to the backend.
We are looking for a direct streaming solution.

Additionally we use some kind of XSRF Token on backend which is only valid for several seconds, but in case of huge uploads the token gets invalid because the request on backend starts after the whole file is uploaded to nginx server.

I have read about several solutions (upload module, lua resty upload, client_body_in_file_only) which all deal with storing the files on nginx box and striping the body for backend with additional headers to process the temp file directly on the backend.

We don't want to modify our applications to handle uploads in that way (it feels a little bit hackish).

Are there any working solution to send the body in junks to the backend server?

Kind Regards
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready