Hi, i've got this big doubt. Is it possible (either by JavaScript or PHP) to control the download event?
I'll explain myself. Say you have a web page with a link for downloading a file. The user clicks on it, and accepts the download or cancels it. Can i get to know wich of the two options were clicked?
My code for downloading is this:
$TheFile = basename($File);
header( "Content-Type: application/octet-stream");
header( "Content-Length: ".filesize($File));
header( "Content-Disposition: attachment; filename=".$TheFile."");
readfile($File);
Any help on this subject?
Very much appreciated. fLIPIS