Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFCONTENT

Status
Not open for further replies.

nsampson1

IS-IT--Management
Sep 8, 2000
26
GB
Hi

I'm tracking user visits to a page by including a 1 pixel gif image in the page and pointing it to a .cfm tracking page like:

<img src=&quot;tracking.cfm?user=#user#&quot;>

In the tracking page, a query updates a counter and returns a 1 pixel gif using CFContent like this:

<CFCONTENT Type=&quot;gif&quot; File=&quot;
I've had 25,000 visits over the last 24 hours which were tracked successfully but all of a sudden, the user is prompted to download and save the gif when they arrive at my page.

Has anyone come accross this problem? Is it a problem with cfcontent? If so then is there an alternative?

thanks in advance

Neil
 
Hey Neil,

It sounds like the mime type isn't being sent correctly. I would change type=&quot;gif&quot; to type=&quot;image/gif&quot; and see if that makes a difference but if it has been working correctly and then suddenly doesn't, the real question is what has changed. I would find out if there have been any webserver config changes, if CF has been upgraded or patched, and verify the .gif is still the original file.

Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top