I have a download script which calculates the download volume.
When I download the file through download managers like IDM (the use multiple connections), it doesn't calculate it well.
How I calculate:
I check if the user has downloaded the last byte of the file. If he did, I update this on DB (to make sure it happens only once, in one of the connections) and increase the user's volume.
** You don't need to build a new script, just to fix the issue **