I am currently developing a web application in which the user can upload some files. However, I would like to limit the number of simultaneous downloads for the user. For example, if the user is currently downloading file A, he cannot download another file until his download is complete, or he has canceled the download.
I would like to know when the download will end or when the user will interrupt the download. I tried to implement such an βalgorithmβ ( Limit parallel / simultaneous downloads - how do I know if the download was canceled? ), But it does not seem to work. The script does not seem to work on the destructor.
So, if you have any solution, I am listening to you.
Thanks.
source share