i am working on a video uploading website where users are registering and uploading their video of unlimited size, the problem we are having that some users are not too smart that although we are showing them processing image and a message that we are processing your data, but still they don't find that video got uploaded or not and close the window before it get's uploaded, the average video size is around 500MB, so i thought about showing them an alert that your video is under processing when they try to close the window, i just want to know that is there any way that we can find that user is closing the browser or tab, i searched it but unfortunately couldn't find the solution, can anyone help me out please in this situation.
Thanks in advance.