Is there a way to detect when user download the whole file? I'm using this script for downloading ZIP file:
header($_SERVER['SERVER_PROTOCOL'] . ' 200 OK');
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: Binary");
header("Content-Length: " . filesize($filePath));
header("Content-Disposition: attachment; filename=\"" .$fileName . "\"");
I read some advice but no one works. Please if you have WORKING and TESTED solution I'll be glad.
Thanks