Try using the CFCONTENT tag.
The link would look like http://mydomain/sendfile.cfm?name=1.zip
Inside the template sendfile.cfm you have code like this:
<cfset PathToFiles = ...
<cfquery name="GetCounter"...
SELECT HitCount
From...
</cfquery>
<cfset Counter = GetCounter.HitCount + 1>
<cfquery name="UpdateCounter"...
UPDATE ...
</cfquery>
<cfcontent type="application/x-zip-compressed"
file="#PathToFiles##URL.name#" deletefile="No">
Nice and simple.
Hope this helps.
Russel
> -----Original Message-----
> From: Michael Lugassy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 19, 2001 8:15 AM
> To: CF-Talk
> Subject: sending a file directly
>
>
> I have a page with direct links to ZIP files (i.e
> http://mydomain/1.zip, 2.zip and so on..)
> I'm trying to find a way to count hits on that link WITHOUT
> opening a pop up window.
>
> I.e - users will click on the ZIP file, a cf page will answer,
> count the hit to the database and
> then release the file, without refreshing.
>
> Is that possible?
>
>
> Thanks,
>
> Michael
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists