I have this huge file that is served to the client embedded in a HTML file. My objective is to know if the file download was successful (meaning downloaded completely) or not and log the download in mySQL using php.
I cannot depend in the server logs because there's always the discrepancy between the file and the HTML it is embedded to (DON'T KNOW WHY, MAYBE SOMEONE COULD EXPLAIN IT TO ME AS WELL). And I cannot assume that the number of file downloads is equivalent to the number of HTML downloads because the HTML is created on-the-fly (AND NO THIS DOES NOT CAUSE THE DISCREPANCY ISSUE ABOVE).
Thank you for reading.
And thanks in advance for your reply.
Any suggestions would be greatly appreciated.