Answer the question
In order to leave comments, you need to log in
How in NGINX to catch the moment when the client has finished downloading a large file?
A site visitor downloads a large file.
How to handle the end of the download on the server side without relying on the client?
For example, immediately upon completion of the download, open some internal URL, execute a PHP script.
How it's done when uploading large files to the server: the file is saved, and proxy-pass at this location body off;
only calls the php script when the large file is fully received. Something like this, but with the return of files.
So far, nothing has come to mind except directing syslog logging in this location to a socket that is listening to a constantly running PHP process, I have not tried it yet.
Answer the question
In order to leave comments, you need to log in
Videos that the customer downloads 1 time are rendered, and they can be deleted.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question