verify that a file was downloaded (save as was clicked)

Reply

Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

verify that a file was downloaded (save as was clicked)

 
0
  #1
Mar 9th, 2005
I am building a file repository for the press industry. The independent publisher pays for bandwidth used (ie: sum file size uploaded and downloaded). My problem is that if you click to download it logs it as a download, is there a way that one can find out which button was clicked ("save as" or "cancel")

:o I use asp upload and asp vb script.

I bet you don't know how!!! ( reverse psychology, worth a try)
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 127
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: verify that a file was downloaded (save as was clicked)

 
0
  #2
Mar 9th, 2005
Hey Willliam! Welcome to DaniWeb. Unfortunately, I don't think that what you are asking is possible, since once you reach that Save As dialog, all of the work being done is client-side. I'm confused what you're asking for though. If the "cancel" button is hit, no bandwidth is wasted? Are you referring to the Save As / Open dialog box that appers? Either way, the user is capable of downloading and opening the file.

Here's an idea. Instead of linking directly to the file, link to a click tracker file. When visitors click on the click tracker script, it records the time, and their IP address, and then redirects them to the file where the Save dialog is automatically presented. (Are you alredy doing this to log how many downloads?) At the same time, use a server-side script to log server activity. Each time the file to be downloaded is accessed on the server (which means it's been actually downloaded), keep a lot of the time and IP address. You can then match up these two log files to see who just clicked "download" and who clicked "download" and had the file sent to them.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

Re: verify that a file was downloaded (save as was clicked)

 
0
  #3
Mar 10th, 2005
I have got a page that writes the file size to a database (this gets
totald to get bandwidth used, (not very reliable)) and on this same
page it calls up the "save as" box. my problem is that everytime
someone calls up the dialog box it adds it to the DBASE even if they
click cancel. I want it to only write the details if the person clicks
"save as". is this possible and not "cancel"?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC