Page 1 of 1

download files counter... count downloaded only!!

Posted: Mon Nov 06, 2006 5:43 am
by jmut
Hi,
I decided to make a small counter of downloaded files. never did that before and found kind of a problem (no idea how these kind of counters are made generraly).

The idea is to provide the file for download through php file...so you can increase the counter. Just before giving the file for download ...counter is increased. When save as... dialog appears though, client can choose 'cancel'...so then this file is not really downloaded.

Is it possible to increase counter only when sure download is really made.

Posted: Mon Nov 06, 2006 5:47 am
by jayshields
AFAIK, no, because when cancel is chosen from that dialog box, nothing is sent to the server to acknowledge this. I doubt this can be tracked via client side scripting either.

I highly doubt any other website that uses a download counter accounts for the user clicking cancel after clicking the download link.