Answer the question
In order to leave comments, you need to log in
Stream file upload via nginx (no buffering)
Hello, Khabrovites!
There was a need to do the following task: organize the download of files through nginx in such a way that it initially starts writing the file to the desired folder without using buffering and a temporary folder.
I understand that this is not safe, but for this task it is not important.
The PHP backend needs to be able to work with the files as soon as they start downloading.
Thanks in advance for your help!
PS Something similar was implemented using HAProxy , there is still hope for tengine , but I haven't seen any guaranteed stable solutions yet.
Answer the question
In order to leave comments, you need to log in
The option is not the best, but you can send a POST request to the program for processing. The program can be a php script. In it, you can already process the request itself (in its raw form) and write the file where necessary and even update the status in the database, memcache or somewhere else.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question