Title: Message
its because your using the same page to do your download
 
Look at it this way
 
  1. Page loads
  2. Click link for download
  3. Page reloads but your telling CF to push the content of a word doc to the client and ask them to download it.  At this point your page headers have changed and are no longer HTML
  4. User clicks cancels the download but the content is still sitting there
  5. User clicks again and the browser now just pushes that word doc content to the browser
this is basicaly what is happeneing, which is why I do my downloads from a popup
 
Steve
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Taco Fleur
Sent: Wednesday, 4 February 2004 9:01 PM
To: CFAussie Mailing List
Subject: [cfaussie] Weird stuff going on

This is weird!
 
If you go to http://development.tacofleur.com/index/file/?access=public&fileName=TacoFleurCV.doc
Click the "Click here" link, click "cancel" then click the link in
"Click here if you want to be notified when this file is modified."
 
If nothing weird happens straight away, then try it a few times.
Its internet exploder where the weirdness occurred for me.
 
The last link that enables you to be notified should present a message like

Forbidden

You don't have permission to access /index/file/update/notify/ on this server.

But instead its shows the content of the Word document, the Word document is definitely not in that folder...

Somehow I think the following headers have something to do with it, anyone?

<cfheader name="Content-type" value="application/octet-stream">
<cfheader name="Content-Disposition" value="attachment; filename=#url.fileName#">
<cfheader name="Content-transfer-encoding" value="binary">
<cfheader name="Content-length" value="1">
<cfcontent type="none" file="#variables.filePath#">

 
Taco Fleur
Blog http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/

Tell me and I will forget
Show me and I will remember
Teach me and I will learn
 
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to